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 Summary
Fields Modifier and Type Field Description protected SelectionLayer
selectionLayer
-
Constructor Summary
Constructors Constructor Description SelectCellCommandHandler(SelectionLayer selectionLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, SelectCellCommand command)
Class<SelectCellCommand>
getCommandClass()
void
selectCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask)
Selects a cell, optionally clearing current selectionprotected void
toggleCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask, boolean forcingEntireCellIntoViewport)
Toggles the selection state of the given row and column.
-
-
-
Field Detail
-
selectionLayer
protected final SelectionLayer selectionLayer
- Since:
- 1.6
-
-
Constructor Detail
-
SelectCellCommandHandler
public SelectCellCommandHandler(SelectionLayer selectionLayer)
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, SelectCellCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<SelectCellCommand>
- Parameters:
targetLayer
- the target layercommand
- 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 interfaceILayerCommandHandler<SelectCellCommand>
-
-