|
|||||||||
| 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>
com.guiseframework.component.AbstractCompositeStateControl<V,AbstractListSelectControl.ValueComponentState>
com.guiseframework.component.AbstractListSelectControl<V>
com.guiseframework.component.BooleanValueControlSelectControl<V>
V - The type of values to select.public class BooleanValueControlSelectControl<V>
A list select control that uses child components to show the list items.
Only ValueControls of type Boolean will be recognized as able to receive user input to select items in the list.
Only a Layout that supports default constraints can be used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractListSelectControl |
|---|
AbstractListSelectControl.ConverterInfoModelValueRepresentationStrategy<VV>, AbstractListSelectControl.DefaultValueRepresentationStrategy<VV>, AbstractListSelectControl.ValueComponentState |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractCompositeStateComponent |
|---|
AbstractCompositeStateComponent.ComponentState |
| 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.ListSelectControl |
|---|
ListSelectControl.ValueRepresentationStrategy<VV> |
| 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 | |
|---|---|
protected com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Boolean> |
componentValueChangeListener
The listener that detects changes to a child component's Boolean value and updates the control's selected values accordingly. |
protected java.util.concurrent.atomic.AtomicBoolean |
synchronizingValuesFlag
The atomic flag that allows us to know whether we're synchronizing values, either from the list to the child controls or vice versa. |
| 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.SelectControl |
|---|
VALUE_REPRESENTATION_STRATEGY_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ValueControl |
|---|
CONVERTER_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.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Constructor Summary | |
|---|---|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass)
Value class constructor with a default data model to represent a given type with multiple selection and a FlowLayout with Flow.PAGE flow. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
Layout<?> layout)
Value class and layout constructor with a default data model to represent a given type with multiple selection. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
Value class, layout, and value representation strategy constructor with a default data model to represent a given type with multiple selection. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
Value class and value representation strategy constructor with a default data model to represent a given type with multiple selection and a FlowLayout with Flow.PAGE flow. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy)
Value class and selection strategy constructor with a default data model to represent a given type and a FlowLayout with Flow.PAGE flow. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
Layout<?> layout)
Value class, selection strategy, and layout constructor with a default data model to represent a given type. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
Value class, selection strategy, layout, and value representation strategy constructor with a default data model to represent a given type. |
|
BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
Value class, selection strategy, and value representation strategy constructor with a default data model to represent a given type and a FlowLayout with Flow.PAGE flow. |
|
BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel)
List select model constructor with a FlowLayout with Flow.PAGE flow. |
|
BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
Layout<?> layout)
List select model and layout constructor. |
|
BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
List select model, layout, and value representation strategy constructor. |
|
BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
List select model and value representation strategy constructor with a FlowLayout with Flow.PAGE flow. |
|
| Method Summary | ||
|---|---|---|
protected void |
addComponent(Component childComponent)
Adds a component to the layout component with default constraints. |
|
void |
applyTheme()
Applies the theme to this object. |
|
void |
applyTheme(Theme theme)
Applies a theme and its parents to this object. |
|
java.lang.Iterable<Component> |
getChildComponents()
Returns an iterable to child components. |
|
Layout<? extends Constraints> |
getLayout()
|
|
protected ValuePolicyModelGroup<java.lang.Boolean> |
getValuePolicyModelGroup()
|
|
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. |
|
protected void |
updateChildControlValues()
Updates the values of child controls based upon the current state of the list selected values. |
|
protected void |
updateListSelectedValues()
Updates the list selected values based upon the current values of the child controls. |
|
void |
updateTheme()
Updates this object's theme. |
|
| Methods inherited from class com.guiseframework.component.AbstractCompositeStateControl |
|---|
determineStatus, getEnableable, getStatus, isEnabled, setEnabled, setNotification, setStatus, updateStatus, updateValid |
| Methods inherited from class com.guiseframework.component.AbstractCompositeStateComponent |
|---|
clearComponentStates, determineComponentState, getComponentState, getComponentStates, getObject, putComponentState, removeComponentState |
| Methods inherited from class com.guiseframework.component.AbstractMultipleCompositeComponent |
|---|
hasChildComponents |
| 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, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, hasChildComponents, removeCompositeComponentListener |
| Methods inherited from interface com.guiseframework.component.ListSelectControl |
|---|
getComponent, getValueRepresentationStrategy, setValueRepresentationStrategy |
| 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.component.ValuedComponent |
|---|
getValue, getValueClass, setValue |
| Methods inherited from interface com.guiseframework.model.ListSelectModel |
|---|
addListListener, addListSelectionListener, addSelectedIndexes, getSelectedIndex, getSelectedIndexes, getSelectionPolicy, isIndexDisplayed, isIndexEnabled, isValueDisplayed, isValueEnabled, removeListListener, removeListSelectionListener, removeSelectedIndexes, setIndexDisplayed, setIndexEnabled, setSelectedIndexes, setValueDisplayed, setValueEnabled |
| Methods inherited from interface com.guiseframework.model.SelectModel |
|---|
getSelectedValue, getSelectedValues, replace, setSelectedValues |
| Methods inherited from interface com.guiseframework.model.ValueModel |
|---|
clearValue, getDefaultValue, getValidator, getValue, getValueClass, isValidValue, resetValue, setValidator, setValue, validateValue |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Field Detail |
|---|
protected final com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Boolean> componentValueChangeListener
Boolean value and updates the control's selected values accordingly.
protected final java.util.concurrent.atomic.AtomicBoolean synchronizingValuesFlag
| Constructor Detail |
|---|
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass)
FlowLayout with Flow.PAGE flow.
valueClass - The class indicating the type of value held in the model.
java.lang.NullPointerException - if the given value class is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
FlowLayout with Flow.PAGE flow.
valueClass - The class indicating the type of value held in the model.valueRepresentationStrategy - The strategy to create label models to represent this model's values.
java.lang.NullPointerException - if the given value class and/or value representation strategy is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy)
FlowLayout with Flow.PAGE flow.
valueClass - The class indicating the type of value held in the model.selectionStrategy - The strategy for selecting values in the model.
java.lang.NullPointerException - if the given value class and/or selection strategy is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
FlowLayout with Flow.PAGE flow.
valueClass - The class indicating the type of value held in the model.selectionStrategy - The strategy for selecting values in the model.valueRepresentationStrategy - The strategy to create label models to represent this model's values.
java.lang.NullPointerException - if the given value class, selection strategy, and/or value representation strategy is null.public BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel)
FlowLayout with Flow.PAGE flow.
listSelectModel - The component list select model.
java.lang.NullPointerException - if the given list select model is null.
public BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
FlowLayout with Flow.PAGE flow.
listSelectModel - The component list select model.valueRepresentationStrategy - The strategy to create label models to represent this model's values.
java.lang.NullPointerException - if the given list select model and/or value representation strategy is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
Layout<?> layout)
valueClass - The class indicating the type of value held in the model.layout - The layout definition for the component.
java.lang.NullPointerException - if the given value class and/or layout is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
valueClass - The class indicating the type of value held in the model.valueRepresentationStrategy - The strategy to create label models to represent this model's values.layout - The layout definition for the component.
java.lang.NullPointerException - if the given value class, layout, and/or value representation strategy is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
Layout<?> layout)
valueClass - The class indicating the type of value held in the model.selectionStrategy - The strategy for selecting values in the model.layout - The layout definition for the component.
java.lang.NullPointerException - if the given value class, selection strategy, and/or layout is null.
public BooleanValueControlSelectControl(java.lang.Class<V> valueClass,
ListSelectionPolicy<V> selectionStrategy,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
valueClass - The class indicating the type of value held in the model.selectionStrategy - The strategy for selecting values in the model.layout - The layout definition for the component.valueRepresentationStrategy - The strategy to create label models to represent this model's values.
java.lang.NullPointerException - if the given value class, selection strategy, layout, and/or value representation strategy is null.
public BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
Layout<?> layout)
listSelectModel - The component list select model.layout - The layout definition for the component.
java.lang.NullPointerException - if the given list select model and/or layout is null.
public BooleanValueControlSelectControl(ListSelectModel<V> listSelectModel,
Layout<?> layout,
ListSelectControl.ValueRepresentationStrategy<V> valueRepresentationStrategy)
listSelectModel - The component list select model.layout - The layout definition for the component.valueRepresentationStrategy - The strategy to create label models to represent this model's values.
java.lang.NullPointerException - if the given list select model, layout, and/or value representation strategy is null.| Method Detail |
|---|
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 java.lang.Iterable<Component> getChildComponents()
getChildComponents in interface CompositeComponentgetChildComponents in class AbstractMultipleCompositeComponentprotected ValuePolicyModelGroup<java.lang.Boolean> getValuePolicyModelGroup()
null if there is no value policy model group in use.protected void addComponent(Component childComponent)
addComponent in class AbstractMultipleCompositeComponentchildComponent - The component to add.
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.protected void removeComponent(Component childComponent)
removeComponent in class AbstractMultipleCompositeComponentchildComponent - 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.protected void updateListSelectedValues()
protected void updateChildControlValues()
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 | ||||||||