org.eclipse.nebula.widgets.nattable.selection
Class SelectRowCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.selection.SelectRowCommandHandler
- All Implemented Interfaces:
- ILayerCommandHandler<SelectRowsCommand>
public class SelectRowCommandHandler
- extends Object
- implements ILayerCommandHandler<SelectRowsCommand>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectRowCommandHandler
public SelectRowCommandHandler(SelectionLayer selectionLayer)
doCommand
public boolean doCommand(ILayer targetLayer,
SelectRowsCommand command)
- Specified by:
doCommand in interface ILayerCommandHandler<SelectRowsCommand>
- Parameters:
targetLayer - the target layercommand - the command
- Returns:
- true if the command has been handled, false otherwise
selectRows
protected void selectRows(int columnPosition,
Collection<Integer> rowPositions,
boolean withShiftMask,
boolean withControlMask,
int rowPositionToMoveIntoViewport)
- Performs row selection based on the given informations and fires a
RowSelectionEvent for the changed selection.
- Parameters:
columnPosition - The column position of the SelectRowsCommand.rowPositions - The row position of the SelectRowsCommand.withShiftMask - The shift mask information of the SelectRowsCommand.withControlMask - The control mask information of the SelectRowsCommand.rowPositionToMoveIntoViewport - Information which row should be moved to the viewport,
transported by the SelectRowsCommand.
getCommandClass
public Class<SelectRowsCommand> getCommandClass()
- Specified by:
getCommandClass in interface ILayerCommandHandler<SelectRowsCommand>
Copyright © 2015. All rights reserved.