org.eclipse.nebula.widgets.nattable.selection
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>
|
Method Summary |
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 selection |
protected void |
toggleCell(int columnPosition,
int rowPosition,
boolean withShiftMask,
boolean withControlMask,
boolean forcingEntireCellIntoViewport)
Toggles the selection state of the given row and column. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectCellCommandHandler
public SelectCellCommandHandler(SelectionLayer selectionLayer)
doCommand
public boolean doCommand(ILayer targetLayer,
SelectCellCommand command)
- Specified by:
doCommand in interface ILayerCommandHandler<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 interface ILayerCommandHandler<SelectCellCommand>
Copyright © 2015. All rights reserved.