Class CellSelection

java.lang.Object
com.iizix.prop.ui.selection.CellSelection
All Implemented Interfaces:
IUICellSelection, IUISelection

public class CellSelection extends Object implements IUICellSelection
The grid selection.
Author:
Christopher Mindus
  • Constructor Details

    • CellSelection

      public CellSelection(UITable source, TCell[] cells)
      Constructor.
      Parameters:
      source - The component source.
      cells - The selected cells.
  • Method Details

    • getSource

      public UITable getSource()
      Get the source component of the event.
      Specified by:
      getSource in interface IUISelection
      Returns:
      The source.
    • getUISource

      public UITable getUISource()
      Gets the UI component being the source of the event.
      Specified by:
      getUISource in interface IUISelection
      Returns:
      The UI component.
    • getCellSelectionSource

      public IUICellSelectionComp getCellSelectionSource()
      Get the source component of the event.
      Specified by:
      getCellSelectionSource in interface IUICellSelection
      Returns:
      The cell selection based component.
    • getSelectedCells

      public TCell[] getSelectedCells()
      Gets the selected cells.
      Specified by:
      getSelectedCells in interface IUICellSelection
      Returns:
      The selected cells. Do not modify the array!
    • equals

      public boolean equals(Object o)
      Equals.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Gets the hash code of this instance, consistent with equals: the source table (by identity, as equals compares it) and the cells.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code.
    • toString

      public String toString()
      Converts the selection to a string.
      Overrides:
      toString in class Object