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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayer targetLayer, SelectCellCommand command) 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 Details
-
selectionLayer
- Since:
- 1.6
-
-
Constructor Details
-
SelectCellCommandHandler
-
-
Method Details
-
doCommand
- 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
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<SelectCellCommand>
-