Class PersistenceUpdateDataChange
java.lang.Object
org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
org.eclipse.nebula.widgets.nattable.datachange.PersistenceUpdateDataChange
- All Implemented Interfaces:
DataChange
DataChange implementation that tracks data updates. Contains an
UpdateDataCommand that is created as result of a DataUpdateEvent and
can be used to revert the data update.- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceUpdateDataChange(Object key, Object oldValue, CellKeyHandler<?> keyHandler) Create anPersistenceUpdateDataChangethat is able to revert the performed data update. -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard(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 Details
-
PersistenceUpdateDataChange
Create anPersistenceUpdateDataChangethat is able to revert the performed data update.- Parameters:
key- The key under which the cell can be found that should be updated.oldValue- The old value that should be re-applied on discard.keyHandler- TheCellKeyHandlerused to get indexes out of the key.
-
-
Method Details
-
discard
Description copied from interface:DataChangeDiscard the change.- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-
save
Description copied from interface:DataChangeSave the change.- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-