|
|||||||||
| 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.AbstractCompositeStateComponent<T,S>
T - The type of object being represented.S - The component state of each object.public abstract class AbstractCompositeStateComponent<T,S extends AbstractCompositeStateComponent.ComponentState>
A composite component that represents the state of its child components.
| Nested Class Summary | |
|---|---|
protected static class |
AbstractCompositeStateComponent.ComponentState
An encapsulation of the state of a representation component. |
| 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 | |
|---|---|
AbstractCompositeStateComponent(InfoModel infoModel)
Info model constructor. |
|
| Method Summary | |
|---|---|
protected void |
clearComponentStates()
Removes all child component states. |
protected abstract S |
createComponentState(T object)
Creates a component state to represent the given object. |
protected S |
determineComponentState(T object)
Retrieves a component state for the given object. |
protected Component |
getComponent(T object)
Retrieves the component for the given object. |
protected S |
getComponentState(T object)
Retrieves a component state for the given object. |
protected java.lang.Iterable<S> |
getComponentStates()
|
protected T |
getObject(Component component)
Retrieves the object for the given component. |
protected S |
putComponentState(T object,
S componentState)
Stores a child component state for the given object. |
protected AbstractCompositeStateComponent.ComponentState |
removeComponentState(T object)
Removes the child component state for the given object. |
| Methods inherited from class com.guiseframework.component.AbstractMultipleCompositeComponent |
|---|
addComponent, getChildComponents, hasChildComponents, removeComponent |
| 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 AbstractCompositeStateComponent(InfoModel infoModel)
infoModel - The component info model.
java.lang.NullPointerException - if the given info model is null.| Method Detail |
|---|
protected java.lang.Iterable<S> getComponentStates()
protected S getComponentState(T object)
object - The object for which a representation component should be returned.
null if there is no component for the given object.protected S determineComponentState(T object)
object - The object for which a representation component should be returned.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component state to be created.getComponentState(Object),
createComponentState(Object),
putComponentState(Object, com.guiseframework.component.AbstractCompositeStateComponent.ComponentState)
protected S putComponentState(T object,
S componentState)
object - The object with which the component state is associated.componentState - The child component state to represent the given object, or null if there is no component for the given object.
null if there was previously no component for the given object.Component.updateTheme()protected AbstractCompositeStateComponent.ComponentState removeComponentState(T object)
object - The object with which the representation component is associated.
null if there was previously no component for the given object.protected void clearComponentStates()
protected Component getComponent(T object)
object - The object for which a representation component should be returned.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component to be created.protected T getObject(Component component)
component - The child component representing an object.object - The object for which a representation component should be returned.
java.lang.NullPointerException - if the given component is null.
java.lang.IllegalArgumentException - if the given component does not represent any object.protected abstract S createComponentState(T object)
object - The object with which the component state is to be associated.
java.lang.IllegalArgumentException - if the given object is not an appropriate object for a component state to be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||