public class UpdateDataCommand extends AbstractPositionCommand
Modifier | Constructor and Description |
---|---|
|
UpdateDataCommand(ILayer layer,
int columnPosition,
int rowPosition,
Object newValue)
Create a new
UpdateDataCommand based on the specified information. |
protected |
UpdateDataCommand(UpdateDataCommand command)
Create a new
UpdateDataCommand based on the specified instance. |
Modifier and Type | Method and Description |
---|---|
UpdateDataCommand |
cloneCommand()
Same semantics as
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks. |
Object |
getNewValue() |
convertToTargetLayer, getColumnPosition, getRowPosition, toString
public UpdateDataCommand(ILayer layer, int columnPosition, int rowPosition, Object newValue)
UpdateDataCommand
based on the specified information.layer
- The ILayer
to which the columnPosition and rowPosition are resolved
to. This is needed to support conversion of column and row positions from this
layer to NatTable coordinates, which may be different e.g. in case of grid
composition.columnPosition
- The column position of the value to update.rowPosition
- The row position of the value to update.newValue
- The value to update the data model value to.protected UpdateDataCommand(UpdateDataCommand command)
UpdateDataCommand
based on the specified instance.
Mainly needed for cloning purposes.command
- The command to create a new instance from.public Object getNewValue()
public UpdateDataCommand cloneCommand()
ILayerCommand
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks.GridLayer.doCommand(ILayerCommand)
Copyright © 2013. All Rights Reserved.