|
|||||||||
| 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
public abstract class AbstractLayoutComponent
Abstract implementation of a layout component. 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.LayoutComponent |
|---|
LAYOUT_PROPERTY, LAYOUT_THEME_APPLIED_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 |
| Constructor Summary | |
|---|---|
AbstractLayoutComponent(InfoModel infoModel,
Layout<? extends Constraints> layout)
Info model and layout constructor. |
|
AbstractLayoutComponent(Layout<? extends Constraints> layout)
Layout constructor with a default info model. |
|
| Method Summary | ||
|---|---|---|
protected void |
addComponent(int index,
Component childComponent)
Adds a child component at the specified index. |
|
void |
applyTheme()
Applies the theme to this object. |
|
void |
applyTheme(Theme theme)
Applies a theme and its parents to this object. |
|
Layout<? extends Constraints> |
getLayout()
|
|
boolean |
isLayoutThemeApplied()
|
|
protected void |
removeComponent(Component childComponent)
Removes a component from the layout component. |
|
void |
resetTheme()
Resets this object's theme. |
|
protected
|
setLayout(Layout<T> newLayout)
Sets the layout definition for the component. |
|
void |
setLayoutThemeApplied(boolean newLayoutThemeApplied)
Sets whether a theme has been applied to this component's layout. |
|
void |
updateTheme()
Updates this object's theme. |
|
| Methods inherited from class com.guiseframework.component.AbstractListCompositeComponent |
|---|
addComponent, contains, get, getChildComponents, getComponentList, hasChildComponents, indexOf, isEmpty, lastIndexOf, 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.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| 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 AbstractLayoutComponent(Layout<? extends Constraints> layout)
layout - The layout definition for the container.
java.lang.NullPointerException - if the given layout is null.
public AbstractLayoutComponent(InfoModel infoModel,
Layout<? extends Constraints> layout)
infoModel - The component info model.layout - The layout definition for the container.
java.lang.NullPointerException - if the given info model and/or layout is null.| Method Detail |
|---|
protected void addComponent(int index,
Component childComponent)
addComponent in class AbstractListCompositeComponentindex - 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.IllegalStateException - if the installed layout does not support default constraints.
java.lang.IndexOutOfBoundsException - if the index is less than zero or greater than the number of child components.protected void removeComponent(Component childComponent)
removeComponent in class AbstractListCompositeComponentchildComponent - The component to remove.
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 Layout<? extends Constraints> getLayout()
getLayout in interface LayoutComponentprotected <T extends Constraints> void setLayout(Layout<T> newLayout)
newLayout - The new layout definition for the container.
java.lang.NullPointerException - if the given layout is null.LayoutComponent.LAYOUT_PROPERTY,
#setPropertiesInitialized(boolean)public boolean isLayoutThemeApplied()
isLayoutThemeApplied in interface LayoutComponentpublic void setLayoutThemeApplied(boolean newLayoutThemeApplied)
Boolean.
setLayoutThemeApplied in interface LayoutComponentnewLayoutThemeApplied - true if a theme has been applied to this component's layout, else false.LayoutComponent.LAYOUT_THEME_APPLIED_PROPERTY,
AbstractComponent.setThemeApplied(boolean)public void resetTheme()
false the state of whether a theme has been applied to this object.
This method is called for any child components resetting its own theme.
No new theme is actually loaded.
There is normally no need to override this method or to call this method directly by applications.
This version resets the theme of the given layout.
resetTheme in interface ComponentresetTheme in class AbstractCompositeComponentAbstractComponent.setThemeApplied(boolean),
setLayoutThemeApplied(boolean)
public void updateTheme()
throws java.io.IOException
applyTheme().
This method is called for any child components before applying the theme to the component itself,
to assure that child theme updates have already occured before theme updates occur for this component.
There is normally no need to override this method or to call this method directly by applications.
This version checks to see if the theme needs to be applied to the given layout.
updateTheme in interface ComponentupdateTheme in class AbstractCompositeComponentjava.io.IOException - if there was an error loading or applying a theme.AbstractComponent.isThemeApplied(),
isLayoutThemeApplied(),
applyTheme()
public void applyTheme()
throws java.io.IOException
applyTheme in interface ComponentapplyTheme in class AbstractComponentjava.io.IOException - if there was an error loading or applying a theme.GuiseApplication.isThemed(),
AbstractComponent.getTheme(),
applyTheme(Theme),
AbstractComponent.setThemeApplied(boolean),
setLayoutThemeApplied(boolean)public void applyTheme(Theme theme)
applyTheme in interface ComponentapplyTheme in class AbstractComponenttheme - The theme to apply to the object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||