|
|||||||||
| 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
public abstract class AbstractListCompositeComponent
Abstract implementation of a composite component that keeps track of its child components in sequence. Iterating over child components is thread safe.
| Nested Class Summary |
|---|
| 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.Component |
|---|
Component.FlyoverStrategy<S extends Component> |
| Field Summary |
|---|
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| 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 |
| Constructor Summary | |
|---|---|
AbstractListCompositeComponent(InfoModel infoModel)
Info model constructor. |
|
| Method Summary | |
|---|---|
protected void |
addComponent(Component childComponent)
Adds a child component to the last position. |
protected void |
addComponent(int index,
Component childComponent)
Adds a child component at the specified index. |
protected boolean |
contains(java.lang.Object component)
Determines whether this component contains the given component. |
protected Component |
get(int index)
Returns the component at the specified index in the component. |
java.lang.Iterable<Component> |
getChildComponents()
|
protected java.util.List<Component> |
getComponentList()
|
boolean |
hasChildComponents()
|
protected int |
indexOf(java.lang.Object component)
Returns the index in the component of the first occurrence of the specified component. |
protected boolean |
isEmpty()
|
protected int |
lastIndexOf(java.lang.Object component)
Returns the index in this component of the last occurrence of the specified component. |
protected void |
removeComponent(Component childComponent)
Removes a child component. |
protected int |
size()
|
| 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, 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public AbstractListCompositeComponent(InfoModel infoModel)
infoModel - The component info model.
java.lang.NullPointerException - if the given info model is null.| Method Detail |
|---|
protected java.util.List<Component> getComponentList()
protected int size()
protected boolean isEmpty()
protected boolean contains(java.lang.Object component)
component - The component to check.
true if this component contains the given component.protected int indexOf(java.lang.Object component)
component - The component the index of which should be returned.
protected int lastIndexOf(java.lang.Object component)
component - The component the last index of which should be returned.
protected Component get(int index)
index - The index of the component to return.
java.lang.IndexOutOfBoundsException - if the index is out of range.
protected void addComponent(int index,
Component childComponent)
index - The index at which the component should be added.childComponent - The component to add to this component.
java.lang.IllegalArgumentException - if the component already has a parent or if the component is already a child of this composite component.
java.lang.IndexOutOfBoundsException - if the index is less than zero or greater than the number of child components.protected final void addComponent(Component childComponent)
addComponent in class AbstractMultipleCompositeComponentchildComponent - The component to add to this component.
java.lang.IllegalArgumentException - if the component already has a parent or if the component is already a child of this composite component.protected void removeComponent(Component childComponent)
removeComponent in class AbstractMultipleCompositeComponentchildComponent - The component to remove from this component.
java.lang.IllegalArgumentException - if the component does not recognize this composite component as its parent or the component is not a member of this composite component.public java.lang.Iterable<Component> getChildComponents()
getChildComponents in interface CompositeComponentgetChildComponents in class AbstractMultipleCompositeComponentpublic boolean hasChildComponents()
hasChildComponents in interface CompositeComponenthasChildComponents in class AbstractMultipleCompositeComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||