Package com.iizix.prop.ui.selection
Class TriStateSelection
- java.lang.Object
- com.iizix.prop.ui.selection.TriStateSelection
 
- All Implemented Interfaces:
- IUISelection,- IUITriStateSelection
 - public class TriStateSelection extends java.lang.Object implements IUITriStateSelection The tri-state selection.- Author:
- Christopher Mindus
 
- Field Summary- Fields inherited from interface com.iizix.prop.ui.selection.IUITriStateSelection- CHECKED, THIRD_STATE, UNSELECTED
 
 - Constructor Summary- Constructors - Constructor - Description - TriStateSelection(IUITriStateSelectionComp source, int state)Constructor.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- equals(java.lang.Object o)Equals.- int- getCheckState()Gets the check state.- IUISelectionComp- getSource()Get the source component of the event.- IUITriStateSelectionComp- getTriStateSource()Get the source component of the event.- UIComp- getUISource()Gets the UI component being the source of the event.- boolean- isChecked()Returns if the state is checked.- boolean- isThirdState()Returns if the state is third state, i.e.- boolean- isUnselected()Returns if the state is unselected.- java.lang.String- 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 Detail- TriStateSelection- public TriStateSelection(IUITriStateSelectionComp source, int state) Constructor.- Parameters:
- source- The component source.
- state- The check state.
 
 
 - Method Detail- getCheckState- public int getCheckState() Gets the check state.- Specified by:
- getCheckStatein interface- IUITriStateSelection
- Returns:
- Returns 0={$link #UNSELECTED}, 1={$link #CHECKED} or 2={$link #THIRD_STATE}.
 
 - isChecked- public boolean isChecked() Returns if the state is checked.- Specified by:
- isCheckedin interface- IUITriStateSelection
- Returns:
- true if checked, false if unselected or in third state.
 
 - isUnselected- public boolean isUnselected() Returns if the state is unselected.- Specified by:
- isUnselectedin interface- IUITriStateSelection
- Returns:
- true if unchecked, false if checked or in third state.
 
 - isThirdState- public boolean isThirdState() Returns if the state is third state, i.e. neither checked nor unselected.- Specified by:
- isThirdStatein interface- IUITriStateSelection
- Returns:
- true if third state, false if checked or unselected.
 
 - getTriStateSource- public IUITriStateSelectionComp getTriStateSource() Get the source component of the event.- Specified by:
- getTriStateSourcein interface- IUITriStateSelection
- Returns:
- The tri-state based component.
 
 - getSource- public IUISelectionComp getSource() Get the source component of the event.- Specified by:
- getSourcein interface- IUISelection
- Returns:
- The selection component.
 
 - getUISource- public UIComp getUISource() Gets the UI component being the source of the event.- Specified by:
- getUISourcein interface- IUISelection
- Returns:
- The UI component.
 
 - equals- public boolean equals(java.lang.Object o) Equals.- Overrides:
- equalsin class- java.lang.Object
 
 - toString- public java.lang.String toString() Converts the selection to a string.- Overrides:
- toStringin class- java.lang.Object