Package com.iizix.prop.ui.selection
Interface IUISelection
- All Known Subinterfaces:
IUIAnimatedSingleIndexedSelection
,IUIBooleanSelection
,IUICellSelection
,IUIIndexedSelection
,IUISingleIndexedSelection
,IUITriStateSelection
- All Known Implementing Classes:
AnimatedSingleIndexSelection
,BooleanSelection
,CellSelection
,MultipleIndiciesSelection
,NoSelection
,RadioSelection
,SingleIndexSelection
,TriStateSelection
public interface IUISelection
The selection interface tag. Every selection event carries an instance of this interface, where the selection can be retrieved in various ways, e.g.:asIndexedSelection()
returningIUIIndexedSelection
asBooleanSelection()
returningIUIBooleanSelection
asTriStateSelection()
returningIUITriStateSelection
- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IUIAnimatedSingleIndexedSelection
asAnimatedSingleIndexedSelection()
Returns the selection as an animated single indexed selection.default IUIBooleanSelection
asBooleanSelection()
Returns the selection as a boolean selection.default IUICellSelection
asCellSelection()
Returns the selection as a cell based selection.default IUIIndexedSelection
asIndexedSelection()
Returns the selection as an indexed selection.default IUISingleIndexedSelection
asSingleIndexedSelection()
Returns the selection as a single indexed selection.default IUITriStateSelection
asTriStateSelection()
Returns the selection as a tri-state selection.IUISelectionComp
getSource()
Get the source component of the event.UIComp
getUISource()
Gets the UI component being the source of the event.
Method Detail
getSource
IUISelectionComp getSource()
Get the source component of the event.- Returns:
- The source component.
getUISource
UIComp getUISource()
Gets the UI component being the source of the event.- Returns:
- The UI component.
asIndexedSelection
default IUIIndexedSelection asIndexedSelection()
Returns the selection as an indexed selection.- Returns:
- The selection instance, or null if the selection is not an indexed selection.
asSingleIndexedSelection
default IUISingleIndexedSelection asSingleIndexedSelection()
Returns the selection as a single indexed selection.- Returns:
- The selection instance, or null if the selection is not a single indexed selection.
asAnimatedSingleIndexedSelection
default IUIAnimatedSingleIndexedSelection asAnimatedSingleIndexedSelection()
Returns the selection as an animated single indexed selection.- Returns:
- The selection instance, or null if the selection is not an animated single indexed selection.
asBooleanSelection
default IUIBooleanSelection asBooleanSelection()
Returns the selection as a boolean selection.- Returns:
- The selection instance, or null if the selection is not a boolean selection.
asTriStateSelection
default IUITriStateSelection asTriStateSelection()
Returns the selection as a tri-state selection.- Returns:
- The selection instance, or null if the selection is not a tri-state selection.
asCellSelection
default IUICellSelection asCellSelection()
Returns the selection as a cell based selection.- Returns:
- The selection instance, or null if the selection is not a cell based selection.