Class SelectCellCommandHandler

java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.SelectCellCommandHandler
All Implemented Interfaces:
ILayerCommandHandler<SelectCellCommand>

public class SelectCellCommandHandler extends Object implements ILayerCommandHandler<SelectCellCommand>
  • Field Details

    • selectionLayer

      protected final SelectionLayer selectionLayer
      Since:
      1.6
  • Constructor Details

    • SelectCellCommandHandler

      public SelectCellCommandHandler(SelectionLayer selectionLayer)
  • Method Details

    • doCommand

      public boolean doCommand(ILayer targetLayer, SelectCellCommand command)
      Specified by:
      doCommand in interface ILayerCommandHandler<SelectCellCommand>
      Parameters:
      targetLayer - the target layer
      command - the command
      Returns:
      true if the command has been handled, false otherwise
    • toggleCell

      protected void toggleCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask, boolean forcingEntireCellIntoViewport)
      Toggles the selection state of the given row and column.
    • selectCell

      public void selectCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask)
      Selects a cell, optionally clearing current selection
    • getCommandClass

      public Class<SelectCellCommand> getCommandClass()
      Specified by:
      getCommandClass in interface ILayerCommandHandler<SelectCellCommand>