Class TemporaryUpdateDataChange
java.lang.Object
org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
org.eclipse.nebula.widgets.nattable.datachange.TemporaryUpdateDataChange
- All Implemented Interfaces:
DataChange
DataChange
implementation that tracks UpdateDataCommand
s for
temporary storage. Contains an UpdateDataCommand
that is executed to
update the backing data on save.- Since:
- 1.6
-
Constructor Summary
ConstructorDescriptionTemporaryUpdateDataChange
(Object key, Object newValue, CellKeyHandler<?> keyHandler) Creates aTemporaryUpdateDataChange
to track the data change without updating the backing data directly. -
Method Summary
Modifier and TypeMethodDescriptionvoid
discard
(DataChangeLayer layer) Discard the change.void
save
(DataChangeLayer layer) Save the change.Methods inherited from class org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
getKey, getUpdateDataCommand, getValue, updateKey
-
Constructor Details
-
TemporaryUpdateDataChange
Creates aTemporaryUpdateDataChange
to track the data change without updating the backing data directly.- Parameters:
key
- The key under which the cell can be found that should be updated.newValue
- The new value that should be set on save.keyHandler
- TheCellKeyHandler
used to get indexes out of the key.
-
-
Method Details
-
discard
Description copied from interface:DataChange
Discard the change.- Parameters:
layer
- TheDataChangeLayer
used to perform index-position transformations and to trigger the necessary commands to save.
-
save
Description copied from interface:DataChange
Save the change.- Parameters:
layer
- TheDataChangeLayer
used to perform index-position transformations and to trigger the necessary commands to save.
-