Class RowObjectDeleteEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
org.eclipse.nebula.widgets.nattable.layer.event.RowDeleteEvent
org.eclipse.nebula.widgets.nattable.layer.event.RowObjectDeleteEvent
- All Implemented Interfaces:
ILayerEvent
,IStructuralChangeEvent
,IVisualChangeEvent
Extension of the
RowDeleteEvent
that additionally carries the deleted
objects per index. Used for example in combination with the DataChangeLayer
to be able to revert a delete operation.- Since:
- 1.6
-
Constructor Summary
ModifierConstructorDescriptionprotected
Clone constructor.RowObjectDeleteEvent
(ILayer layer, int rowIndex, Object deletedObject) Creates aRowObjectDeleteEvent
for one deleted row object.RowObjectDeleteEvent
(ILayer layer, Map<Integer, ?> deletedObjects) Creates aRowObjectDeleteEvent
for multiple deleted row objects. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowDeleteEvent
convertToLocal, getDeletedRowIndexes, getRowDiffs
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
getChangedPositionRectangles, getColumnDiffs, isHorizontalStructureChanged, isVerticalStructureChanged
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
getLayer, getRowIndexes, getRowPositionRanges, setRowPositionRanges, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.IVisualChangeEvent
getLayer
-
Constructor Details
-
RowObjectDeleteEvent
Creates aRowObjectDeleteEvent
for one deleted row object.- Parameters:
layer
- The layer to which the row index is matching.rowIndex
- The index of the row that was deleted.deletedObject
- The deleted row object.
-
RowObjectDeleteEvent
Creates aRowObjectDeleteEvent
for multiple deleted row objects.- Parameters:
layer
- The layer to which the row indexes are matching.deletedObjects
- The mapping from index to object of the deleted rows.
-
RowObjectDeleteEvent
Clone constructor.- Parameters:
event
- The event to clone.
-
-
Method Details
-
getDeletedObjects
- Returns:
- The deleted rows mapped from row index to object.
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Overrides:
cloneEvent
in classRowDeleteEvent
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-