Class RowInsertDataChange
java.lang.Object
org.eclipse.nebula.widgets.nattable.datachange.RowInsertDataChange
- All Implemented Interfaces:
DataChange
DataChange implementation to track row insert operations. Is used in
persistent mode and can only discard a row insert operation by deleting it
again via RowDeleteCommand.- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionRowInsertDataChange(Object key, CellKeyHandler<?> keyHandler) Create aRowInsertDataChangethat is able to revert the performed row insert operation. -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard(DataChangeLayer layer) Discard the change.getKey()voidsave(DataChangeLayer layer) Save the change.voidUpdate the locally stored key.
-
Constructor Details
-
RowInsertDataChange
Create aRowInsertDataChangethat is able to revert the performed row insert operation.- Parameters:
key- The key under which the row can be found that should be deleted again.keyHandler- TheCellKeyHandlerused to get the row index out of the key.
-
-
Method Details
-
discard
Description copied from interface:DataChangeDiscard the change.- Specified by:
discardin interfaceDataChange- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-
save
Description copied from interface:DataChangeSave the change.- Specified by:
savein interfaceDataChange- Parameters:
layer- TheDataChangeLayerused to perform index-position transformations and to trigger the necessary commands to save.
-
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.
-