|
|||||||||
| 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.AbstractControl
com.guiseframework.component.AbstractActionControl
com.guiseframework.component.AbstractActionValueControl<java.lang.Boolean>
com.guiseframework.component.AbstractBooleanSelectActionControl
public abstract class AbstractBooleanSelectActionControl
Selectable action control that stores a Boolean value in its model representing the selected state.
The selected property and the Boolean value will be kept synchronized.
When the value and/or changes, separate property change events for both ValueModel.VALUE_PROPERTY and for Selectable.SELECTED_PROPERTY will be fired.
A validator requiring a non-null value is automatically installed.
The selected and unselected icons are set by default to Theme.GLYPH_SELECTED and Theme.GLYPH_UNSELECTED, respectively.
| 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 |
| 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.SelectActionControl |
|---|
AUTO_SELECT_PROPERTY, SELECTED_GLYPH_URI_PROPERTY, TOGGLE_PROPERTY, UNSELECTED_GLYPH_URI_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ActionControl |
|---|
ROLLOVER_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.Selectable |
|---|
SELECTED_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ActionValueControl |
|---|
VALUE_GLYPH_URI_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ValueControl |
|---|
CONVERTER_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Fields inherited from interface com.guiseframework.component.LabelDisplayableComponent |
|---|
ICON_DISPLAYED_PROPERTY, LABEL_DISPLAYED_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractBooleanSelectActionControl(InfoModel infoModel,
ActionModel actionModel,
ValueModel<java.lang.Boolean> valueModel,
Enableable enableable)
Info model, action model, value model, and enableable object constructor. |
|
| Method Summary | |
|---|---|
java.net.URI |
getSelectedGlyphURI()
|
java.net.URI |
getUnselectedGlyphURI()
|
boolean |
isAutoSelect()
|
boolean |
isSelected()
Returns whether the component is selected. |
boolean |
isToggle()
|
void |
setAutoSelect(boolean newAutoSelect)
Sets whether this control automatically sets or toggles the selection state when the action occurs. |
void |
setSelected(boolean newSelected)
Sets whether the component is selected. |
void |
setSelectedGlyphURI(java.net.URI newSelectedIcon)
Sets the URI of the selected icon. |
void |
setToggle(boolean newToggle)
Sets whether this control acts as a toggle, switching its value between true and false, or whether the action always sets the value to true. |
void |
setUnselectedGlyphURI(java.net.URI newUnselectedIcon)
Sets the URI of the unselected icon. |
| Methods inherited from class com.guiseframework.component.AbstractActionValueControl |
|---|
clearValue, determineValid, firePropertyChange, getDefaultValue, getValidator, getValue, getValueClass, getValueGlyphURI, getValueModel, isValidValue, reset, resetValue, setValidator, setValue, setValueGlyphURI, validate, validateValue |
| Methods inherited from class com.guiseframework.component.AbstractActionControl |
|---|
addActionListener, fireActionPerformed, fireActionPerformed, getActionListeners, getActionModel, isIconDisplayed, isLabelDisplayed, isRollover, performAction, performAction, removeActionListener, setIconDisplayed, setLabelDisplayed, setRollover |
| Methods inherited from class com.guiseframework.component.AbstractControl |
|---|
determineStatus, getEnableable, getStatus, isEnabled, setEnabled, setNotification, setStatus, updateStatus, updateValid |
| 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.ActionControl |
|---|
isRollover, setRollover |
| 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 com.guiseframework.model.ActionModel |
|---|
getActionListeners, performAction, performAction |
| Methods inherited from interface com.guiseframework.event.ActionListenable |
|---|
addActionListener, removeActionListener |
| Constructor Detail |
|---|
public AbstractBooleanSelectActionControl(InfoModel infoModel,
ActionModel actionModel,
ValueModel<java.lang.Boolean> valueModel,
Enableable enableable)
infoModel - The component info model.actionModel - The component action model.valueModel - The component value model.enableable - The enableable object in which to store enabled status.
java.lang.NullPointerException - if the given info model, action model, and/or enableable object is null.| Method Detail |
|---|
public boolean isAutoSelect()
isAutoSelect in interface SelectActionControlpublic void setAutoSelect(boolean newAutoSelect)
Boolean.
setAutoSelect in interface SelectActionControlnewAutoSelect - true if the control should automatically set or toggle the selection state when an action occurs, or false if no selection occurs automatically.SelectActionControl.AUTO_SELECT_PROPERTYpublic boolean isSelected()
isSelected in interface Selectablepublic void setSelected(boolean newSelected)
Boolean.
This implementation delegates to he value model.
setSelected in interface SelectablenewSelected - true if the component should be selected, else false.Selectable.SELECTED_PROPERTYpublic java.net.URI getSelectedGlyphURI()
getSelectedGlyphURI in interface SelectActionControlnull if there is no selected icon URI.public void setSelectedGlyphURI(java.net.URI newSelectedIcon)
URI.
setSelectedGlyphURI in interface SelectActionControlnewSelectedIcon - The new URI of the selected icon, which may be a resource URI.SelectActionControl.SELECTED_GLYPH_URI_PROPERTYpublic boolean isToggle()
isToggle in interface SelectActionControltrue and false, or whether the action always sets the value to true.public void setToggle(boolean newToggle)
true and false, or whether the action always sets the value to true.
This is a bound property of type Boolean.
setToggle in interface SelectActionControlnewToggle - true if the component should act as a toggle, else false if the action should unconditionally set the value to true.SelectActionControl.TOGGLE_PROPERTYpublic java.net.URI getUnselectedGlyphURI()
getUnselectedGlyphURI in interface SelectActionControlnull if there is no unselected icon URI.public void setUnselectedGlyphURI(java.net.URI newUnselectedIcon)
URI.
setUnselectedGlyphURI in interface SelectActionControlnewUnselectedIcon - The new URI of the unselected icon, which may be a resource URI.SelectActionControl.UNSELECTED_GLYPH_URI_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||