Class SelectCellCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
org.eclipse.nebula.widgets.nattable.selection.command.SelectCellCommand
- All Implemented Interfaces:
ILayerCommand
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
ConstructorsModifierConstructorDescriptionSelectCellCommand
(ILayer layer, int columnPosition, int rowPosition, boolean shiftMask, boolean controlMask) protected
SelectCellCommand
(SelectCellCommand command) -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.boolean
boolean
boolean
void
setForcingEntireCellIntoViewport
(boolean forcingEntireCellIntoViewport) Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
convertToTargetLayer, getColumnPosition, getLayer, getRowPosition, toString
-
Constructor Details
-
SelectCellCommand
public SelectCellCommand(ILayer layer, int columnPosition, int rowPosition, boolean shiftMask, boolean controlMask) -
SelectCellCommand
-
-
Method Details
-
isShiftMask
public boolean isShiftMask() -
isControlMask
public boolean isControlMask() -
isForcingEntireCellIntoViewport
public boolean isForcingEntireCellIntoViewport() -
setForcingEntireCellIntoViewport
public void setForcingEntireCellIntoViewport(boolean forcingEntireCellIntoViewport) -
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:
-