public class MoveRowSelectionCommandHandler extends MoveCellSelectionCommandHandler
lastSelectedCellPosition, newSelectedColumnPosition, newSelectedRowPositionhorizontalTraversalStrategy, selectionLayer, verticalTraversalStrategy| Constructor and Description |
|---|
MoveRowSelectionCommandHandler(SelectionLayer selectionLayer)
Create a MoveRowSelectionCommandHandler for the given
SelectionLayer. |
MoveRowSelectionCommandHandler(SelectionLayer selectionLayer,
ITraversalStrategy traversalStrategy)
Create a MoveRowSelectionCommandHandler for the given
SelectionLayer. |
MoveRowSelectionCommandHandler(SelectionLayer selectionLayer,
ITraversalStrategy horizontalTraversalStrategy,
ITraversalStrategy verticalTraversalStrategy)
Create a MoveRowSelectionCommandHandler for the given
SelectionLayer . |
| Modifier and Type | Method and Description |
|---|---|
protected void |
moveLastSelectedDown(ITraversalStrategy traversalStrategy,
boolean withShiftMask,
boolean withControlMask)
Moves the selection from the current position down.
|
protected void |
moveLastSelectedLeft(ITraversalStrategy traversalStrategy,
boolean withShiftMask,
boolean withControlMask)
Moves the selection from the current position to the left.
|
protected void |
moveLastSelectedRight(ITraversalStrategy traversalStrategy,
boolean withShiftMask,
boolean withControlMask)
Moves the selection from the current position to the right.
|
protected void |
moveLastSelectedUp(ITraversalStrategy traversalStrategy,
boolean withShiftMask,
boolean withControlMask)
Moves the selection from the current position up.
|
createIncrementalStrategy, getCommandClass, positionMoveddoCommand, getTraversalStrategy, moveSelectionpublic MoveRowSelectionCommandHandler(SelectionLayer selectionLayer)
SelectionLayer. Uses the
ITraversalStrategy.AXIS_TRAVERSAL_STRATEGY as default strategy
for selection movement.selectionLayer - The SelectionLayer on which the selection should be
performed.public MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy traversalStrategy)
SelectionLayer.selectionLayer - The SelectionLayer on which the selection should be
performed.traversalStrategy - The strategy that should be used for selection movements. Can
not be null.public MoveRowSelectionCommandHandler(SelectionLayer selectionLayer, ITraversalStrategy horizontalTraversalStrategy, ITraversalStrategy verticalTraversalStrategy)
SelectionLayer .selectionLayer - The SelectionLayer on which the selection should be
performed.horizontalTraversalStrategy - The strategy that should be used for horizontal selection
movements. Can not be null.verticalTraversalStrategy - The strategy that should be used for vertical selection
movements. Can not be null.protected void moveLastSelectedLeft(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask)
MoveSelectionCommandHandlermoveLastSelectedLeft in class MoveCellSelectionCommandHandlertraversalStrategy - the traversal strategy to determine the number of steps to
move and the behavior on moving over the borderwithShiftMask - boolean flag to indicate whether the shift key modifier is
enabled or notwithControlMask - boolean flag to indicate whether the control key modifier is
enabled or notprotected void moveLastSelectedRight(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask)
MoveSelectionCommandHandlermoveLastSelectedRight in class MoveCellSelectionCommandHandlertraversalStrategy - the traversal strategy to determine the number of steps to
move and the behavior on moving over the borderwithShiftMask - boolean flag to indicate whether the shift key modifier is
enabled or notwithControlMask - boolean flag to indicate whether the control key modifier is
enabled or notprotected void moveLastSelectedUp(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask)
MoveSelectionCommandHandlermoveLastSelectedUp in class MoveCellSelectionCommandHandlertraversalStrategy - the traversal strategy to determine the number of steps to
move and the behavior on moving over the borderwithShiftMask - boolean flag to indicate whether the shift key modifier is
enabled or notwithControlMask - boolean flag to indicate whether the control key modifier is
enabled or notprotected void moveLastSelectedDown(ITraversalStrategy traversalStrategy, boolean withShiftMask, boolean withControlMask)
MoveSelectionCommandHandlermoveLastSelectedDown in class MoveCellSelectionCommandHandlertraversalStrategy - the traversal strategy to determine the number of steps to
move and the behavior on moving over the borderwithShiftMask - boolean flag to indicate whether the shift key modifier is
enabled or notwithControlMask - boolean flag to indicate whether the control key modifier is
enabled or notCopyright © 2016. All rights reserved.