Class KeyRowInsertEvent
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.RowInsertEvent
org.eclipse.nebula.widgets.nattable.datachange.event.KeyRowInsertEvent
- All Implemented Interfaces:
ILayerEvent,IStructuralChangeEvent,IVisualChangeEvent
Extension of the
RowInsertEvent that additionally carries the keys of
the inserted objects. Used for example in combination with the
DataChangeLayer to be able to revert an insert operation in a sorted or
filtered state.- Since:
- 1.6
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClone constructor.KeyRowInsertEvent(ILayer layer, int rowIndex, Object key, CellKeyHandler<?> keyHandler) Creates aKeyRowInsertEventfor one inserted row object.KeyRowInsertEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Object> keys, CellKeyHandler<?> keyHandler) Creates aKeyRowInsertEventfor multiple inserted row objects.KeyRowInsertEvent(ILayer layer, Range rowPositionRange, Collection<Object> keys, CellKeyHandler<?> keyHandler) Creates aKeyRowInsertEventfor multiple inserted row objects. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowInsertEvent
getRowDiffsMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
getChangedPositionRectangles, getColumnDiffs, isHorizontalStructureChanged, isVerticalStructureChangedMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
convertToLocal, getLayer, getRowIndexes, getRowPositionRanges, setRowPositionRanges, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent
convertToLocalMethods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.IVisualChangeEvent
getLayer
-
Constructor Details
-
KeyRowInsertEvent
Creates aKeyRowInsertEventfor one inserted row object.- Parameters:
layer- The layer to which the row index is matching.rowIndex- The index of the row that was inserted.key- The key of the inserted row object.keyHandler- TheCellKeyHandlerthat was used to create the key.
-
KeyRowInsertEvent
public KeyRowInsertEvent(ILayer layer, Range rowPositionRange, Collection<Object> keys, CellKeyHandler<?> keyHandler) Creates aKeyRowInsertEventfor multiple inserted row objects.- Parameters:
layer- The layer to which the row indexes are matching.rowPositionRange- The position range of the inserted rows.keys- The keys of the inserted rows.keyHandler- TheCellKeyHandlerthat was used to create the key.
-
KeyRowInsertEvent
public KeyRowInsertEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Object> keys, CellKeyHandler<?> keyHandler) Creates aKeyRowInsertEventfor multiple inserted row objects.- Parameters:
layer- The layer to which the row indexes are matching.rowPositionRanges- The position ranges of the inserted rows.keys- The keys of the inserted rows.keyHandler- TheCellKeyHandlerthat was used to create the key.
-
KeyRowInsertEvent
Clone constructor.- Parameters:
event- The event to clone.
-
-
Method Details
-
getKeys
- Returns:
- The keys of the inserted rows.
-
getKeyHandler
- Returns:
- The
CellKeyHandlerthat was used to create the key.
-
cloneEvent
- Specified by:
cloneEventin interfaceILayerEvent- Overrides:
cloneEventin classRowInsertEvent- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-