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
ConstructorsConstructorDescriptionSelectRowGroupCommandHandler(IRowGroupModel<T> model, SelectionLayer selectionLayer, RowGroupHeaderLayer<T> rowGroupHeaderLayer) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoCommand(SelectRowGroupsCommand command) protected voidselectRows(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:
doCommandin 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-trueif the selected row should be moved into the viewport to make it visible.moveAnchorToTopOfGroup-trueif the selection anchor should be moved to the first row in the group.- Since:
- 2.0
-