|
|||||||||
| 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.AbstractLayoutControl
public abstract class AbstractLayoutControl
An abstract implementation of a layout component that is also a control.
| 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.Control |
|---|
Control.Status |
| 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.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractLayoutControl(InfoModel infoModel,
Enableable enableable,
Layout<?> layout)
Info model, enableable, and layout constructor. |
|
AbstractLayoutControl(Layout<?> layout)
Layout constructor with a default info model and enableable. |
|
| Method Summary | |
|---|---|
protected Control.Status |
determineStatus()
Checks the user input status of the control. |
protected void |
enabledPropertyChange(boolean oldValue,
boolean newValue)
Called when the enabled property changes. |
protected Enableable |
getEnableable()
|
Control.Status |
getStatus()
|
boolean |
isEnabled()
|
void |
reset()
Resets the control to its default value. |
void |
setEnabled(boolean newEnabled)
Sets whether the control is enabled and and can receive user input. |
void |
setNotification(Notification newNotification)
Sets the component notification. |
protected void |
setStatus(Control.Status newStatus)
Sets the status of the current user input. |
protected void |
updateStatus()
Rechecks user input status of this component, and updates the status. |
protected void |
updateValid()
Rechecks user input validity of this component and all child components, and updates the valid state. |
| Methods inherited from class com.guiseframework.component.AbstractLayoutComponent |
|---|
addComponent, applyTheme, applyTheme, getLayout, isLayoutThemeApplied, removeComponent, resetTheme, setLayout, setLayoutThemeApplied, updateTheme |
| 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.LayoutComponent |
|---|
getLayout, isLayoutThemeApplied, setLayoutThemeApplied |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| Constructor Detail |
|---|
public AbstractLayoutControl(Layout<?> layout)
layout - The layout definition for the layout component.
java.lang.NullPointerException - if the given layout is null.
public AbstractLayoutControl(InfoModel infoModel,
Enableable enableable,
Layout<?> layout)
infoModel - The component info model.enableable - The enableable object in which to store enabled status.layout - The layout definition for the layout component.
java.lang.NullPointerException - if the given info model, enableable, and/or layout is null.| Method Detail |
|---|
protected Enableable getEnableable()
public Control.Status getStatus()
getStatus in interface Controlnull if there is no status to report.protected void setStatus(Control.Status newStatus)
newStatus - The new status of the current user input, or null if there is no status to report.Control.STATUS_PROPERTYprotected void updateStatus()
setStatus(Control.Status)protected Control.Status determineStatus()
Notification.Severity#WARNING, the status is determined to be Status#WARNING.
If the component has a notification of Notification.Severity#ERROR, the status is determined to be Status#ERROR.
Otherwise, this version returns null.
protected void updateValid()
updateValid in class AbstractComponentAbstractComponent.setValid(boolean),
updateStatus()public void setNotification(Notification newNotification)
setNotification in interface ComponentsetNotification in class AbstractComponentnewNotification - The notification for the component, or null if no notification is associated with this component.Component.NOTIFICATION_PROPERTYpublic void reset()
reset in interface ControlsetNotification(Notification)
protected void enabledPropertyChange(boolean oldValue,
boolean newValue)
oldValue - The old value of the property.newValue - The new value of the property.setNotification(Notification),
updateValid()public boolean isEnabled()
isEnabled in interface Enableablepublic void setEnabled(boolean newEnabled)
Boolean.
setEnabled in interface EnableablenewEnabled - true if the control should indicate and accept user input.Enableable.ENABLED_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||