Class UpdateDataChange
java.lang.Object
org.eclipse.nebula.widgets.nattable.datachange.UpdateDataChange
- All Implemented Interfaces:
DataChange
- Direct Known Subclasses:
PersistenceUpdateDataChange,TemporaryUpdateDataChange
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
ConstructorsConstructorDescriptionUpdateDataChange(Object key, Object value, CellKeyHandler<?> keyHandler) Create anUpdateDataChangethat is able to revert the performed data update. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()protected UpdateDataCommandgetValue()voidUpdate the locally stored key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.datachange.DataChange
discard, save
-
Constructor Details
-
UpdateDataChange
Create anUpdateDataChangethat is able to revert the performed data update.- Parameters:
key- The key under which the cell can be found that should be updated.value- The value that should be set on save or discard.keyHandler- TheCellKeyHandlerused to get indexes out of the key.
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceDataChange- Returns:
- The key used to identify the change in the backing data.
-
updateKey
Description copied from interface:DataChangeUpdate the locally stored key. Used in case the key changed because of structural changes.- Specified by:
updateKeyin interfaceDataChange- Parameters:
key- The updated key.
-
getValue
- Returns:
- The value that should be set on save or discard.
-
getUpdateDataCommand
-