public interface DataChangeHandler
| Modifier and Type | Method and Description |
|---|---|
void |
clearDataChanges()
Clear the locally stored changes.
|
void |
disableTracking()
Disable tracking of data changes to avoid tracking of changes that are
caused by save or discard operations.
|
void |
enableTracking()
Enable tracking of data changes to keep track of all changes.
|
void |
handleStructuralChange(IStructuralChangeEvent event)
Trigger handling of
IStructuralChangeEvents to update locally
stored changes, e.g. |
boolean |
isCellDirty(int columnPosition,
int rowPosition)
Checks if the cell at the given position is dirty.
|
boolean |
isColumnDirty(int columnPosition)
Checks if the column with the given position contains cells in a dirty
state.
|
boolean |
isRowDirty(int rowPosition)
Checks if the row with the given position contains cells in a dirty
state.
|
void disableTracking()
void enableTracking()
void handleStructuralChange(IStructuralChangeEvent event)
IStructuralChangeEvents to update locally
stored changes, e.g. update the row index of a key in case a row above
was inserted or deleted.event - The event to handle.void clearDataChanges()
boolean isColumnDirty(int columnPosition)
columnPosition - The position of the column whose dirty state should be
checked.true if the column contains cells that are marked as
dirty (data has changed and not saved yet), false if
not.boolean isRowDirty(int rowPosition)
rowPosition - The position of the row whose dirty state should be checked.true if the row contains cells that are marked as
dirty (data has changed and not saved yet), false if
not.boolean isCellDirty(int columnPosition,
int rowPosition)
columnPosition - The column position of the cell whose dirty state should be
checked.rowPosition - The row position of the cell whose dirty state should be
checked.true if the cell is dirty (data has changed and not
saved yet), false if not.Copyright © 2019. All rights reserved.