|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractCompositeComponent
com.guiseframework.component.AbstractMultipleCompositeComponent
com.guiseframework.component.AbstractListCompositeComponent
com.guiseframework.component.AbstractLayoutComponent
com.guiseframework.component.AbstractContainer
com.guiseframework.component.AbstractContainerControl
com.guiseframework.component.AbstractListSelectContainerControl
public abstract class AbstractListSelectContainerControl
An abstract list select control that is also a container.
The component valid status is updated before a change in the ValueModel.VALUE_PROPERTY or the ValueModel.VALIDATOR_PROPERTY is fired.
This implementation installs a default value representation strategy that simply passes through the represented component.
| Nested Class Summary | |
|---|---|
static class |
AbstractListSelectContainerControl.ComponentRepresentationStrategy
A strategy for to represent components in a list select model as themselves. |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.ListSelectControl |
|---|
ListSelectControl.ValueRepresentationStrategy<VV> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Control |
|---|
Control.Status |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Field Summary | |
|---|---|
static AbstractListSelectContainerControl.ComponentRepresentationStrategy |
COMPONENT_REPRESENTATION_STRATEGY
The static representation strategy to represent component values as themselves. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.SelectControl |
|---|
VALUE_REPRESENTATION_STRATEGY_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ValueControl |
|---|
CONVERTER_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Component |
|---|
BOOKMARK_ENABLED_PROPERTY, CONSTRAINTS_PROPERTY, DRAG_ENABLED_PROPERTY, DROP_ENABLED_PROPERTY, FLYOVER_ENABLED_PROPERTY, FLYOVER_STRATEGY_PROPERTY, INPUT_STRATEGY_PROPERTY, NAME_PROPERTY, NOTIFICATION_PROPERTY, ORIENTATION_PROPERTY, THEME_APPLIED_PROPERTY, VALID_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Displayable |
|---|
DISPLAYED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Fields inherited from interface com.guiseframework.component.LayoutComponent |
|---|
LAYOUT_PROPERTY, LAYOUT_THEME_APPLIED_PROPERTY |
| Constructor Summary | |
|---|---|
protected |
AbstractListSelectContainerControl(AbstractValueLayout<?> layout)
Layout constructor. |
| Method Summary | ||
|---|---|---|
boolean |
addAll(java.util.Collection<? extends Component> collection)
Appends all of the values in the specified collection to the end of this model, in the order that they are returned by the specified collection's iterator. |
|
boolean |
addAll(int index,
java.util.Collection<? extends Component> collection)
Inserts all of the values in the specified collection into this model at the specified position. |
|
void |
addListListener(ListListener<Component> listListener)
Adds a list listener. |
|
void |
addListSelectionListener(ListSelectionListener<Component> selectionListener)
Adds a list selection listener. |
|
void |
addSelectedIndexes(int... indexes)
Adds a selection at the given indices. |
|
void |
clearValue()
Clears the value by setting the value to null, which may be invalid according to any installed validators. |
|
boolean |
containsAll(java.util.Collection<?> collection)
Determines if this model contains all of the values of the specified collection. |
|
protected boolean |
determineChildrenValid()
Checks the state of child components for validity. |
|
protected void |
fireChildComponentAdded(ComponentEvent childComponentEvent)
Fires a given component added event to all registered composite component listeners. |
|
protected void |
fireChildComponentRemoved(ComponentEvent childComponentEvent)
Fires a given component removed event to all registered composite component listeners. |
|
protected
|
firePropertyChange(java.lang.String propertyName,
VV oldValue,
VV newValue)
Reports that a bound property has changed. |
|
protected void |
fireSelectionChanged(java.lang.Integer addedIndex,
java.lang.Integer removedIndex)
Fires an event to all registered selection listeners indicating the selection changed. |
|
Component |
getComponent(Component object)
Retrieves the component for the given object. |
|
Component |
getDefaultValue()
|
|
AbstractValueLayout<? extends ControlConstraints> |
getLayout()
|
|
int |
getSelectedIndex()
Determines the selected index. |
|
int[] |
getSelectedIndexes()
Determines the selected indices. |
|
Component |
getSelectedValue()
Determines the selected value. |
|
Component[] |
getSelectedValues()
Determines the selected values. |
|
ListSelectionPolicy<Component> |
getSelectionPolicy()
|
|
Validator<Component> |
getValidator()
|
|
Component |
getValue()
|
|
java.lang.Class<Component> |
getValueClass()
|
|
ListSelectControl.ValueRepresentationStrategy<Component> |
getValueRepresentationStrategy()
|
|
boolean |
isDisplayed(Component component)
Convenience method to determine whether a card is displayed based upon its associated constraints. |
|
boolean |
isEnabled(Component component)
Convenience method to determine whether a card is enabled based upon its associated constraints. |
|
boolean |
isIndexDisplayed(int index)
Determines the displayed status of a given index. |
|
boolean |
isIndexEnabled(int index)
Determines the enabled status of a given index. |
|
boolean |
isValidValue()
Determines whether the value of this model is valid. |
|
boolean |
isValueDisplayed(Component value)
Determines the displayed status of the first occurrence of a given value. |
|
boolean |
isValueEnabled(Component value)
Determines the enabled status of the first occurrence of a given value. |
|
java.util.ListIterator<Component> |
listIterator()
|
|
java.util.ListIterator<Component> |
listIterator(int index)
Returns a list iterator of the values in this model (in proper sequence), starting at the specified position in this model. |
|
boolean |
removeAll(java.util.Collection<?> collection)
Removes from this model all the values that are contained in the specified collection. |
|
void |
removeListListener(ListListener<Component> listListener)
Removes a list listener. |
|
void |
removeListSelectionListener(ListSelectionListener<Component> selectionListener)
Removes a list selection listener. |
|
void |
removeSelectedIndexes(int... indexes)
Removes a selection at the given indices. |
|
boolean |
replace(Component oldValue,
Component newValue)
Replaces the first occurrence in the of the given value with its replacement. |
|
void |
resetValue()
Resets the value to a default value, which may be invalid according to any installed validators. |
|
boolean |
retainAll(java.util.Collection<?> collection)
Retains only the values in this model that are contained in the specified collection. |
|
Component |
set(int index,
Component value)
Replaces the value at the specified position in this model with the specified value. |
|
void |
setDisplayed(Component component,
boolean newDisplayed)
Sets a card displayed or not displayed. |
|
void |
setEnabled(Component component,
boolean newEnabled)
Enables or disables a card. |
|
void |
setIndexDisplayed(int index,
boolean newDisplayed)
Sets the displayed status of a given index. |
|
void |
setIndexEnabled(int index,
boolean newEnabled)
Sets the enabled status of a given index. |
|
void |
setSelectedIndexes(int... indexes)
Sets the selected indices. |
|
void |
setSelectedValues(Component... values)
Sets the selected values. |
|
void |
setValidator(Validator<Component> newValidator)
Sets the validator. |
|
void |
setValue(Component newValue)
Sets the value. |
|
void |
setValueDisplayed(Component value,
boolean newDisplayed)
Sets the displayed status of the first occurrence of a given value. |
|
void |
setValueEnabled(Component value,
boolean newEnabled)
Sets the enabled status of the first occurrence of a given value. |
|
void |
setValueRepresentationStrategy(ListSelectControl.ValueRepresentationStrategy<Component> newValueRepresentationStrategy)
Sets the strategy used to generate a component to represent each value in the model. |
|
java.util.List<Component> |
subList(int fromIndex,
int toIndex)
Returns a read-only view of the portion of this model between the specified fromIndex, inclusive, and toIndex, exclusive. |
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] array)
Returns an array containing all of the values in this model. |
|
boolean |
validateChildren()
Validates the user input of child components. |
|
void |
validateValue()
Validates the value of this model, throwing an exception if the model is not valid. |
|
| Methods inherited from class com.guiseframework.component.AbstractContainerControl |
|---|
determineStatus, getEnableable, getStatus, isEnabled, reset, setEnabled, setNotification, setStatus, updateStatus, updateValid |
| Methods inherited from class com.guiseframework.component.AbstractContainer |
|---|
add, add, add, add, add, add, add, add, clear, contains, createComponent, get, getChildComponents, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, setChildren, setLayout, size |
| Methods inherited from class com.guiseframework.component.AbstractLayoutComponent |
|---|
addComponent, applyTheme, applyTheme, isLayoutThemeApplied, removeComponent, resetTheme, setLayoutThemeApplied, updateTheme |
| Methods inherited from class com.guiseframework.component.AbstractListCompositeComponent |
|---|
addComponent, getComponentList, hasChildComponents |
| Methods inherited from class com.guiseframework.component.AbstractCompositeComponent |
|---|
addCompositeComponentListener, childComponentValidPropertyChanged, determineValid, dispatchInputEvent, dispatchInputEvent, fireChildComponentAdded, fireChildComponentRemoved, initializeChildComponent, loadPreferences, removeCompositeComponentListener, savePreferences, uninitializeChildComponent, validate |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.Control |
|---|
getStatus, reset |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
depict, getDepictID, getSession, processEvent |
| Methods inherited from interface com.guiseframework.model.InfoModel |
|---|
getDescription, getDescriptionContentType, getInfo, getInfoContentType, setDescription, setDescriptionContentType, setInfo, setInfoContentType |
| Methods inherited from interface com.guiseframework.model.LabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.globalmentor.beans.PropertyConstrainable |
|---|
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from interface com.guiseframework.model.Enableable |
|---|
isEnabled, setEnabled |
| Methods inherited from interface java.util.List |
|---|
add, add, clear, contains, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, size |
| Methods inherited from interface com.guiseframework.component.Container |
|---|
add, add, add, add, add, add, add, clear, contains, get, indexOf, isEmpty, lastIndexOf, remove, remove, setLayout, size |
| Methods inherited from interface com.guiseframework.component.LayoutComponent |
|---|
isLayoutThemeApplied, setLayoutThemeApplied |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| Field Detail |
|---|
public static final AbstractListSelectContainerControl.ComponentRepresentationStrategy COMPONENT_REPRESENTATION_STRATEGY
| Constructor Detail |
|---|
protected AbstractListSelectContainerControl(AbstractValueLayout<?> layout)
layout - The layout definition for the container.
java.lang.NullPointerException - if the given layout is null.| Method Detail |
|---|
public AbstractValueLayout<? extends ControlConstraints> getLayout()
getLayout in interface LayoutComponentgetLayout in class AbstractLayoutComponentpublic ListSelectControl.ValueRepresentationStrategy<Component> getValueRepresentationStrategy()
getValueRepresentationStrategy in interface ListSelectControl<Component>public void setValueRepresentationStrategy(ListSelectControl.ValueRepresentationStrategy<Component> newValueRepresentationStrategy)
setValueRepresentationStrategy in interface ListSelectControl<Component>newValueRepresentationStrategy - The new strategy to create components to represent this model's values.
java.lang.NullPointerException - if the provided value representation strategy is null.SelectControl.VALUE_REPRESENTATION_STRATEGY_PROPERTYpublic Component getComponent(Component object)
ListSelectControl.
getComponent in interface ListSelectControl<Component>object - The object for which a representation component should be returned.
null if there is no component representing the given object.
protected <VV> void firePropertyChange(java.lang.String propertyName,
VV oldValue,
VV newValue)
firePropertyChange in class com.globalmentor.beans.BoundPropertyObjectpropertyName - The name of the property being changed.oldValue - The old property value.newValue - The new property value.BoundPropertyObject.firePropertyChange(PropertyChangeEvent),
BoundPropertyObject.hasPropertyChangeListeners(String),
GenericPropertyChangeEvent,
GenericPropertyChangeListenerprotected boolean determineChildrenValid()
determineChildrenValid in class AbstractCompositeComponenttrue if the relevant children pass all validity tests.public boolean validateChildren()
validateChildren in class AbstractCompositeComponenttrue if all child validations return true.public Component getDefaultValue()
getDefaultValue in interface ValueModel<Component>public Component getValue()
getValue in interface ValuedComponent<Component>getValue in interface Valued<Component>getValue in interface ValueModel<Component>null if there is no input value.
public void setValue(Component newValue)
throws java.beans.PropertyVetoException
equals() method.
If a validator is installed, the value will first be validated before the current value is changed.
Validation always occurs if a validator is installed, even if the value is not changing.
If the value change is vetoed by the installed validator, the validation exception will be accessible via Throwable.getCause().
setValue in interface ValuedComponent<Component>setValue in interface Valued<Component>setValue in interface ValueModel<Component>newValue - The new value.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.getValidator(),
ValueModel.VALUE_PROPERTYpublic void clearValue()
null, which may be invalid according to any installed validators.
No validation occurs.
clearValue in interface ValueModel<Component>ValueModel.VALUE_PROPERTYpublic void resetValue()
resetValue in interface ValueModel<Component>ValueModel.VALUE_PROPERTYpublic Validator<Component> getValidator()
getValidator in interface ValueModel<Component>null if no validator is installed.public void setValidator(Validator<Component> newValidator)
setValidator in interface ValueModel<Component>newValidator - The validator for this model, or null if no validator should be used.ValueModel.VALIDATOR_PROPERTYpublic boolean isValidValue()
isValidValue in interface ValueModel<Component>
public void validateValue()
throws ValidationException
validateValue in interface ValueModel<Component>ValidationException - if the value of this model is not valid.public java.lang.Class<Component> getValueClass()
getValueClass in interface ValuedComponent<Component>getValueClass in interface ValueModel<Component>
public boolean replace(Component oldValue,
Component newValue)
replace in interface SelectModel<Component>oldValue - The value for which to search.newValue - The replacement value.
public Component getSelectedValue()
getSelectedValue in interface SelectModel<Component>null if no value is currently selected.public Component[] getSelectedValues()
getSelectedValues in interface SelectModel<Component>
public void setSelectedValues(Component... values)
throws java.beans.PropertyVetoException
Throwable.getCause().
This method delegates to the selection strategy.
setSelectedValues in interface SelectModel<Component>values - The values to select.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.public ListSelectionPolicy<Component> getSelectionPolicy()
getSelectionPolicy in interface ListSelectModel<Component>public int getSelectedIndex()
getSelectedIndex in interface ListSelectModel<Component>getSelectedValue()public int[] getSelectedIndexes()
getSelectedIndexes in interface ListSelectModel<Component>getSelectedValues()
public void setSelectedIndexes(int... indexes)
throws java.beans.PropertyVetoException
Throwable.getCause().
setSelectedIndexes in interface ListSelectModel<Component>indexes - The indices to select.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.ListSelectionPolicy.getSetSelectedIndices(ListSelectModel, int[]),
#setSelectedValues(V[]),
addSelectedIndexes(int...)
public void addSelectedIndexes(int... indexes)
throws java.beans.PropertyVetoException
Throwable.getCause().
addSelectedIndexes in interface ListSelectModel<Component>indexes - The indices to add to the selection.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.ListSelectionPolicy.getAddSelectedIndices(ListSelectModel, int[]),
setSelectedIndexes(int[])
public void removeSelectedIndexes(int... indexes)
throws java.beans.PropertyVetoException
Throwable.getCause().
removeSelectedIndexes in interface ListSelectModel<Component>indexes - The indices to remove from the selection.
java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.ListSelectionPolicy.getRemoveSelectedIndices(ListSelectModel, int[]),
setSelectedIndexes(int[])public boolean isValueDisplayed(Component value)
isValueDisplayed in interface ListSelectModel<Component>value - The value for which the displayed status is to be determined.
true if the value is displayed, else false.
java.lang.IndexOutOfBoundsException - if the given value does not occur in the model.
public void setValueDisplayed(Component value,
boolean newDisplayed)
setValueDisplayed in interface ListSelectModel<Component>value - The value to enable or disable.newDisplayed - Whether the value should be displayed.Displayable.DISPLAYED_PROPERTYpublic boolean isIndexDisplayed(int index)
isIndexDisplayed in interface ListSelectModel<Component>index - The index of the value for which the displayed status is to be determined.
true if the value at the given index is displayed, else false.
public void setIndexDisplayed(int index,
boolean newDisplayed)
setIndexDisplayed in interface ListSelectModel<Component>index - The index of the value to enable or disable.newDisplayed - Whether the value at the given index should be displayed.
java.lang.IndexOutOfBoundsException - if the given index is not within the range of the list.Displayable.DISPLAYED_PROPERTYpublic boolean isValueEnabled(Component value)
isValueEnabled in interface ListSelectModel<Component>value - The value for which the enabled status is to be determined.
true if the value is enabled, else false.
java.lang.IndexOutOfBoundsException - if the given value does not occur in the model.
public void setValueEnabled(Component value,
boolean newEnabled)
setValueEnabled in interface ListSelectModel<Component>value - The value to enable or disable.newEnabled - Whether the value should be enabled.Enableable.ENABLED_PROPERTYpublic boolean isIndexEnabled(int index)
isIndexEnabled in interface ListSelectModel<Component>index - The index of the value for which the enabled status is to be determined.
true if the value at the given index is enabled, else false.
public void setIndexEnabled(int index,
boolean newEnabled)
setIndexEnabled in interface ListSelectModel<Component>index - The index of the value to enable or disable.newEnabled - Whether the value at the given index should be enabled.
java.lang.IndexOutOfBoundsException - if the given index is not within the range of the list.Enableable.ENABLED_PROPERTYpublic void addListListener(ListListener<Component> listListener)
addListListener in interface ListListenable<Component>addListListener in interface ListSelectModel<Component>listListener - The list listener to add.public void removeListListener(ListListener<Component> listListener)
removeListListener in interface ListListenable<Component>removeListListener in interface ListSelectModel<Component>listListener - The list listener to remove.public void addListSelectionListener(ListSelectionListener<Component> selectionListener)
addListSelectionListener in interface ListSelectModel<Component>selectionListener - The selection listener to add.public void removeListSelectionListener(ListSelectionListener<Component> selectionListener)
removeListSelectionListener in interface ListSelectModel<Component>selectionListener - The selection listener to remove.protected void fireChildComponentAdded(ComponentEvent childComponentEvent)
fireChildComponentAdded in class AbstractCompositeComponentchildComponentEvent - The child component event to fire.protected void fireChildComponentRemoved(ComponentEvent childComponentEvent)
fireChildComponentRemoved in class AbstractCompositeComponentchildComponentEvent - The child component event to fire.CompositeComponentListener
protected void fireSelectionChanged(java.lang.Integer addedIndex,
java.lang.Integer removedIndex)
addedIndex - The index that was added to the selection, or null if no index was added or it is unknown whether or which indices were added.removedIndex - The index that was removed from the list, or null if no index was removed or it is unknown whether or which indices were removed.ListSelectionListener,
ListSelectionEventpublic java.lang.Object[] toArray()
toArray in interface java.util.Collection<Component>toArray in interface java.util.List<Component>public <T> T[] toArray(T[] array)
toArray in interface java.util.Collection<Component>toArray in interface java.util.List<Component>array - The array into which the value of this collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
java.lang.ArrayStoreException - if the runtime type of the specified array is not a supertype of the runtime type of every value in this model.
java.lang.NullPointerException - if the specified array is null.public boolean containsAll(java.util.Collection<?> collection)
containsAll in interface java.util.Collection<Component>containsAll in interface java.util.List<Component>collection - The collection to be checked for containment in this model.
true if this model contains all of the values of the specified collection.
java.lang.NullPointerException - if the specified collection is null.AbstractContainer.contains(Object)public boolean addAll(java.util.Collection<? extends Component> collection)
addAll in interface java.util.Collection<Component>addAll in interface java.util.List<Component>collection - The collection the values of which are to be added to this model.
true if this model changed as a result of the call.
java.lang.NullPointerException - if the specified collection is null.Collection.add(Object)
public boolean addAll(int index,
java.util.Collection<? extends Component> collection)
addAll in interface java.util.List<Component>index - The index at which to insert first value from the specified collection.collection - The values to be inserted into this model.
true if this model changed as a result of the call.
java.lang.NullPointerException - if the specified collection is null.
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<Component>removeAll in interface java.util.List<Component>collection - The collection that defines which values will be removed from this model.
true if this model changed as a result of the call.
java.lang.NullPointerException - if the specified collection is null.AbstractContainer.remove(Object),
AbstractContainer.contains(Object)public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<Component>retainAll in interface java.util.List<Component>collection - The collection that defines which values this model will retain.
true if this model changed as a result of the call.
java.lang.NullPointerException - if the specified collection is null.AbstractContainer.remove(Object),
AbstractContainer.contains(Object)
public Component set(int index,
Component value)
set in interface java.util.List<Component>index - The index of the value to replace.value - The value to be stored at the specified position.
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size()).public java.util.ListIterator<Component> listIterator()
listIterator in interface java.util.List<Component>public java.util.ListIterator<Component> listIterator(int index)
listIterator in interface java.util.List<Component>index - The index of first value to be returned from the list iterator (by a call to the next() method).
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size()).
public java.util.List<Component> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<Component>fromIndex - The low endpoint (inclusive) of the sub-list.toIndex - The high endpoint (exclusive) of the sub-list.
java.lang.IndexOutOfBoundsException - for an illegal endpoint index value (fromIndex < 0 || toIndex > size() || fromIndex > toIndex).public boolean isDisplayed(Component component)
java.lang.IllegalStateException - if the given component has no associated constraints.ControlConstraints.isDisplayed()
public void setDisplayed(Component component,
boolean newDisplayed)
component - The component for which the card should be displayed or not displayed.newDisplayed - true if the card should be displayed.
java.lang.IllegalStateException - if the given component has no associated constraints.ControlConstraints.setDisplayed(boolean)public boolean isEnabled(Component component)
java.lang.IllegalStateException - if the given component has no associated constraints.ControlConstraints.isEnabled()
public void setEnabled(Component component,
boolean newEnabled)
component - The component for which the card should be enabled or disabled.newEnabled - true if the card can be selected.
java.lang.IllegalStateException - if the given component has no associated constraints.ControlConstraints.setEnabled(boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||