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
public class DataUpdateEvent extends CellVisualChangeEvent
Specialization ofCellVisualChangeEvent
to inform about a data update that is triggered viaUpdateDataCommandHandler
.- Since:
- 1.6
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
columnPosition, layer, rowPosition
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataUpdateEvent
cloneEvent()
Object
getNewValue()
Object
getOldValue()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
convertToLocal, getChangedPositionRectangles, getColumnPosition, getLayer, getRowPosition
-
-
-
-
Constructor Detail
-
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
protected DataUpdateEvent(DataUpdateEvent event)
Constructor that is used to clone an even.- Parameters:
event
- The event that should be cloned.
-
-
Method Detail
-
cloneEvent
public DataUpdateEvent 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
public Object getOldValue()
- Returns:
- The old value before the data modification.
-
getNewValue
public Object getNewValue()
- Returns:
- The new value after the data modification.
-
-