Class SelectCellCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
-
- org.eclipse.nebula.widgets.nattable.selection.command.SelectCellCommand
-
- All Implemented Interfaces:
ILayerCommand
public class SelectCellCommand extends AbstractPositionCommand
Event indicating that the user has selected a specific cell in the data grid. This command should be used for implementing all selection handling by layers. Note that this command takes a Grid PositionCoordinate describing a cell on the screen on which the user has clicked. Do not pass it anything else or you will introduce very subtle and very difficult to debug bugs into the code and then we will have to pay you a visit on one random Sunday morning when you least expect it.
-
-
Constructor Summary
Constructors Modifier Constructor Description SelectCellCommand(ILayer layer, int columnPosition, int rowPosition, boolean shiftMask, boolean controlMask)
protected
SelectCellCommand(SelectCellCommand command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectCellCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.boolean
isControlMask()
boolean
isForcingEntireCellIntoViewport()
boolean
isShiftMask()
void
setForcingEntireCellIntoViewport(boolean forcingEntireCellIntoViewport)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
convertToTargetLayer, getColumnPosition, getLayer, getRowPosition, toString
-
-
-
-
Constructor Detail
-
SelectCellCommand
public SelectCellCommand(ILayer layer, int columnPosition, int rowPosition, boolean shiftMask, boolean controlMask)
-
SelectCellCommand
protected SelectCellCommand(SelectCellCommand command)
-
-
Method Detail
-
isShiftMask
public boolean isShiftMask()
-
isControlMask
public boolean isControlMask()
-
isForcingEntireCellIntoViewport
public boolean isForcingEntireCellIntoViewport()
-
setForcingEntireCellIntoViewport
public void setForcingEntireCellIntoViewport(boolean forcingEntireCellIntoViewport)
-
cloneCommand
public SelectCellCommand cloneCommand()
Description copied from interface:ILayerCommand
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.- Returns:
- a cloned instance of the command
- See Also:
GridLayer.doCommand(ILayerCommand)
-
-