org.eclipse.nebula.widgets.nattable.selection
Class SelectRowCommandHandler

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.selection.SelectRowCommandHandler
All Implemented Interfaces:
ILayerCommandHandler<SelectRowsCommand>

public class SelectRowCommandHandler
extends Object
implements ILayerCommandHandler<SelectRowsCommand>


Constructor Summary
SelectRowCommandHandler(SelectionLayer selectionLayer)
           
 
Method Summary
 boolean doCommand(ILayer targetLayer, SelectRowsCommand command)
           
 Class<SelectRowsCommand> getCommandClass()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectRowCommandHandler

public SelectRowCommandHandler(SelectionLayer selectionLayer)
Method Detail

doCommand

public boolean doCommand(ILayer targetLayer,
                         SelectRowsCommand command)
Specified by:
doCommand in interface ILayerCommandHandler<SelectRowsCommand>
Parameters:
targetLayer - the target layer
command - 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.