Class DataUpdateEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
org.eclipse.nebula.widgets.nattable.edit.event.DataUpdateEvent
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
Specialization of
CellVisualChangeEvent
to inform about a data update
that is triggered via
UpdateDataCommandHandler
.- Since:
- 1.6
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
columnPosition, layer, rowPosition
-
Constructor Summary
ModifierConstructorDescriptionprotected
DataUpdateEvent
(DataUpdateEvent event) Constructor that is used to clone an even.DataUpdateEvent
(ILayer layer, int columnPosition, int rowPosition, Object oldValue, Object newValue) Create a newDataUpdateEvent
. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
convertToLocal, getChangedPositionRectangles, getColumnPosition, getLayer, getRowPosition
-
Constructor Details
-
DataUpdateEvent
public DataUpdateEvent(ILayer layer, int columnPosition, int rowPosition, Object oldValue, Object newValue) Create a newDataUpdateEvent
.- Parameters:
layer
- The layer to which the position values match.columnPosition
- The column position of the cell whose data was updated.rowPosition
- The row position of the cell whose data was updated.oldValue
- The old value before the data modification.newValue
- The new value after the data modification.
-
DataUpdateEvent
Constructor that is used to clone an even.- Parameters:
event
- The event that should be cloned.
-
-
Method Details
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Overrides:
cloneEvent
in classCellVisualChangeEvent
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
getOldValue
- Returns:
- The old value before the data modification.
-
getNewValue
- Returns:
- The new value after the data modification.
-