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 of CellVisualChangeEvent to inform about a data update that is triggered via UpdateDataCommandHandler.
Since:
1.6
  • Constructor Details

    • DataUpdateEvent

      public DataUpdateEvent(ILayer layer, int columnPosition, int rowPosition, Object oldValue, Object newValue)
      Create a new DataUpdateEvent.
      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 Details

    • cloneEvent

      public DataUpdateEvent cloneEvent()
      Specified by:
      cloneEvent in interface ILayerEvent
      Overrides:
      cloneEvent in class CellVisualChangeEvent
      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.