Class UpdateDataCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
org.eclipse.nebula.widgets.nattable.edit.command.UpdateDataCommand
- All Implemented Interfaces:
ILayerCommand
Command that will trigger a data model update.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUpdateDataCommand(UpdateDataCommand command) Create a newUpdateDataCommandbased on the specified instance.UpdateDataCommand(ILayer layer, int columnPosition, int rowPosition, Object newValue) Create a newUpdateDataCommandbased on the specified information. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.voidsetNewValue(Object newValue) toString()Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
convertToTargetLayer, getColumnPosition, getLayer, getRowPosition
-
Constructor Details
-
UpdateDataCommand
Create a newUpdateDataCommandbased on the specified information.- Parameters:
layer- TheILayerto 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.
-
UpdateDataCommand
Create a newUpdateDataCommandbased on the specified instance. Mainly needed for cloning purposes.- Parameters:
command- The command to create a new instance from.
-
-
Method Details
-
getNewValue
- Returns:
- The value to update the data model to.
-
setNewValue
- Parameters:
newValue- The value to update the data model to.- Since:
- 2.1
-
cloneCommand
Description copied from interface:ILayerCommandSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.- Returns:
- a cloned instance of the command
- See Also:
-
toString
- Overrides:
toStringin classAbstractPositionCommand
-