public class MultiRowReorderCommand extends Object implements ILayerCommand
Modifier | Constructor and Description |
---|---|
|
MultiRowReorderCommand(ILayer layer,
List<Integer> fromRowPositions,
int toRowPosition) |
|
MultiRowReorderCommand(ILayer layer,
List<Integer> fromRowPositions,
int toRowPosition,
boolean reorderToTopEdge) |
protected |
MultiRowReorderCommand(MultiRowReorderCommand command)
Constructor used for cloning purposes
|
Modifier and Type | Method and Description |
---|---|
MultiRowReorderCommand |
cloneCommand()
Same semantics as
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks. |
boolean |
convertToTargetLayer(ILayer targetLayer)
Convert the row/column coordinates the command might be carrying from the source layer
to the destination (target) layer.
|
List<Integer> |
getFromRowPositions() |
int |
getToRowPosition() |
boolean |
isReorderToTopEdge() |
public MultiRowReorderCommand(ILayer layer, List<Integer> fromRowPositions, int toRowPosition)
layer
- The layer the positions are related tofromRowPositions
- The positions of the rows that should be reorderedtoRowPosition
- The position of the row to which the dragged row should be droppedpublic MultiRowReorderCommand(ILayer layer, List<Integer> fromRowPositions, int toRowPosition, boolean reorderToTopEdge)
layer
- The layer the positions are related tofromRowPositions
- The positions of the rows that should be reorderedtoRowPosition
- The position of the row to which the dragged row should be droppedreorderToTopEdge
- Flag to indicate if the row is dragged to the top edge of the layerprotected MultiRowReorderCommand(MultiRowReorderCommand command)
command
- The command which is base for the new onepublic List<Integer> getFromRowPositions()
public int getToRowPosition()
public boolean isReorderToTopEdge()
public boolean convertToTargetLayer(ILayer targetLayer)
ILayerCommand
convertToTargetLayer
in interface ILayerCommand
targetLayer
- the target layerpublic MultiRowReorderCommand cloneCommand()
ILayerCommand
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks.cloneCommand
in interface ILayerCommand
GridLayer.doCommand(ILayerCommand)
Copyright © 2013. All Rights Reserved.