Package com.iizix.prop.ui.selection
Class BooleanSelection
java.lang.Object
com.iizix.prop.ui.selection.BooleanSelection
- All Implemented Interfaces:
- IUIBooleanSelection,- IUISelection
The boolean on/off (or selected/unselected) selection state.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- BooleanSelection- (IUIBooleanSelectionComp source, boolean isSelected) Constructor.
- Method SummaryModifier and TypeMethodDescription- booleanEquals.Get the source component of the event.Get the source component of the event.Gets the UI component being the source of the event.- boolean- isOFF()Returns if the selection is "off".- boolean- isON()Returns if the selection is "on".- booleanReturns the selection state.- booleanReturns if the selection is not set.- toString()Converts the selection to a string.- Methods inherited from class java.lang.Object- clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait- Methods inherited from interface com.iizix.prop.ui.selection.IUISelection- asAnimatedSingleIndexedSelection, asBooleanSelection, asCellSelection, asIndexedSelection, asSingleIndexedSelection, asTriStateSelection
- Constructor Details- BooleanSelectionConstructor.- Parameters:
- source- The component source.
- isSelected- The selection state.
 
 
- Method Details- isSelectedpublic boolean isSelected()Returns the selection state.- Specified by:
- isSelectedin interface- IUIBooleanSelection
- Returns:
- true if selected, false if unselected.
 
- isUnselectedpublic boolean isUnselected()Returns if the selection is not set.- Specified by:
- isUnselectedin interface- IUIBooleanSelection
- Returns:
- true if unselected, true if selected.
 
- isONpublic boolean isON()Returns if the selection is "on".- Specified by:
- isONin interface- IUIBooleanSelection
- Returns:
- true if on, false otherwise.
 
- isOFFpublic boolean isOFF()Returns if the selection is "off".- Specified by:
- isOFFin interface- IUIBooleanSelection
- Returns:
- true if off, true otherwise.
 
- getBooleanSourceGet the source component of the event.- Specified by:
- getBooleanSourcein interface- IUIBooleanSelection
- Returns:
- The boolean-type component.
 
- getSourceGet the source component of the event.- Specified by:
- getSourcein interface- IUISelection
- Returns:
- The source.
 
- getUISourceGets the UI component being the source of the event.- Specified by:
- getUISourcein interface- IUISelection
- Returns:
- The UI component.
 
- equalsEquals.
- toStringConverts the selection to a string.