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
Constructors Constructor Description SelectRowGroupCommandHandler(IRowGroupModel<T> model, SelectionLayer selectionLayer, RowGroupHeaderLayer<T> rowGroupHeaderLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doCommand(SelectRowGroupsCommand command)
Class<SelectRowGroupsCommand>
getCommandClass()
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 Detail
-
SelectRowGroupCommandHandler
public SelectRowGroupCommandHandler(IRowGroupModel<T> model, SelectionLayer selectionLayer, RowGroupHeaderLayer<T> rowGroupHeaderLayer)
-
-
Method Detail
-
getCommandClass
public Class<SelectRowGroupsCommand> getCommandClass()
-
doCommand
protected boolean doCommand(SelectRowGroupsCommand command)
- 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
-
-