Package com.iizix.prop.ui.selection
Class CellSelection
- java.lang.Object
- com.iizix.prop.ui.selection.CellSelection
- All Implemented Interfaces:
IUICellSelection
,IUISelection
public class CellSelection extends java.lang.Object implements IUICellSelection
The grid selection.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description CellSelection(UITable source, TCell[] cells)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Equals.IUICellSelectionComp
getCellSelectionSource()
Get the source component of the event.TCell[]
getSelectedCells()
Gets the selected cells.UITable
getSource()
Get the source component of the event.UITable
getUISource()
Gets the UI component being the source of the event.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
Method Detail
getSource
public UITable getSource()
Get the source component of the event.- Specified by:
getSource
in interfaceIUISelection
- Returns:
- The source.
getUISource
public UITable getUISource()
Gets the UI component being the source of the event.- Specified by:
getUISource
in interfaceIUISelection
- Returns:
- The UI component.
getCellSelectionSource
public IUICellSelectionComp getCellSelectionSource()
Get the source component of the event.- Specified by:
getCellSelectionSource
in interfaceIUICellSelection
- Returns:
- The cell selection based component.
getSelectedCells
public TCell[] getSelectedCells()
Gets the selected cells.- Specified by:
getSelectedCells
in interfaceIUICellSelection
- Returns:
- The selected cells. Do not modify the array!
equals
public boolean equals(java.lang.Object o)
Equals.- Overrides:
equals
in classjava.lang.Object
toString
public java.lang.String toString()
Converts the selection to a string.- Overrides:
toString
in classjava.lang.Object