Class TemporaryUpdateDataChange
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
-
- org.eclipse.nebula.widgets.nattable.datachange.TemporaryUpdateDataChange
-
- All Implemented Interfaces:
DataChange
public class TemporaryUpdateDataChange extends UpdateDataChange
DataChangeimplementation that tracksUpdateDataCommands for temporary storage. Contains anUpdateDataCommandthat is executed to update the backing data on save.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description TemporaryUpdateDataChange(Object key, Object newValue, CellKeyHandler<?> keyHandler)Creates aTemporaryUpdateDataChangeto track the data change without updating the backing data directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddiscard(DataChangeLayer layer)Discard the change.voidsave(DataChangeLayer layer)Save the change.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
getKey, getUpdateDataCommand, getValue, updateKey
-
-
-
-
Constructor Detail
-
TemporaryUpdateDataChange
public TemporaryUpdateDataChange(Object key, Object newValue, CellKeyHandler<?> keyHandler)
Creates aTemporaryUpdateDataChangeto 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- TheCellKeyHandlerused to get indexes out of the key.
-
-
Method Detail
-
discard
public void discard(DataChangeLayer layer)
Description copied from interface:DataChangeDiscard the change.- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-
save
public void save(DataChangeLayer layer)
Description copied from interface:DataChangeSave the change.- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-
-