Package com.iizix.prop.ui.selection
Interface IUITriStateSelection
- All Superinterfaces:
- IUISelection
- All Known Implementing Classes:
- TriStateSelection
The boolean selection is used for radio buttons and others when box type components (menu item) where the state can be checked, third state or unchecked.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final intThe state: checked.- static final intThe state: third state.- static final intThe state: unselected.
- Method SummaryModifier and TypeMethodDescription- intGets the check state.Get the source component of the event.- booleanReturns if the state is checked.- booleanReturns if the state is third state, i.e.- booleanReturns if the state is unselected.- Methods inherited from interface com.iizix.prop.ui.selection.IUISelection- asAnimatedSingleIndexedSelection, asBooleanSelection, asCellSelection, asIndexedSelection, asSingleIndexedSelection, asTriStateSelection, getSource, getUISource
- Field Details- UNSELECTEDstatic final int UNSELECTEDThe state: unselected.- See Also:
 
- CHECKEDstatic final int CHECKEDThe state: checked.- See Also:
 
- THIRD_STATEstatic final int THIRD_STATEThe state: third state.- See Also:
 
 
- Method Details- getCheckStateint getCheckState()Gets the check state.- Returns:
- Returns 0={$link #UNSELECTED}, 1={$link #CHECKED} or 2={$link #THIRD_STATE}.
 
- isCheckedboolean isChecked()Returns if the state is checked.- Returns:
- true if checked, false if unselected or in third state.
 
- isUnselectedboolean isUnselected()Returns if the state is unselected.- Returns:
- true if unchecked, false if checked or in third state.
 
- isThirdStateboolean isThirdState()Returns if the state is third state, i.e. neither checked nor unselected.- Returns:
- true if third state, false if checked or unselected.
 
- getTriStateSourceIUITriStateSelectionComp getTriStateSource()Get the source component of the event.- Returns:
- The tri-state based component.