Class SelectRowGroupCommandHandler<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler<SelectRowGroupsCommand>
org.eclipse.nebula.widgets.nattable.selection.SelectRowGroupCommandHandler<T>
- All Implemented Interfaces:
ILayerCommandHandler<SelectRowGroupsCommand>
public class SelectRowGroupCommandHandler<T>
extends AbstractLayerCommandHandler<SelectRowGroupsCommand>
-
Constructor Summary
ConstructorDescriptionSelectRowGroupCommandHandler
(IRowGroupModel<T> model, SelectionLayer selectionLayer, RowGroupHeaderLayer<T> rowGroupHeaderLayer) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doCommand
(SelectRowGroupsCommand command) protected void
selectRows
(int columnPosition, int[] rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport, boolean moveAnchorToTopOfGroup) Trigger the selection of rows.Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
Constructor Details
-
SelectRowGroupCommandHandler
public SelectRowGroupCommandHandler(IRowGroupModel<T> model, SelectionLayer selectionLayer, RowGroupHeaderLayer<T> rowGroupHeaderLayer)
-
-
Method Details
-
getCommandClass
-
doCommand
- Specified by:
doCommand
in classAbstractLayerCommandHandler<SelectRowGroupsCommand>
-
selectRows
protected void selectRows(int columnPosition, int[] rowPositions, boolean withShiftMask, boolean withControlMask, int rowPositionToMoveIntoViewport, boolean moveAnchorToTopOfGroup) Trigger the selection of rows.- Parameters:
columnPosition
- column position needed for the selection anchor.rowPositions
- the row to select.withShiftMask
- if shift mask selection behavior is enabled or not.withControlMask
- if control mask selection behavior is enabled or not.rowPositionToMoveIntoViewport
-true
if the selected row should be moved into the viewport to make it visible.moveAnchorToTopOfGroup
-true
if the selection anchor should be moved to the first row in the group.- Since:
- 2.0
-