Class KeyRowInsertEvent

All Implemented Interfaces:
ILayerEvent, IStructuralChangeEvent, IVisualChangeEvent

public class KeyRowInsertEvent extends RowInsertEvent
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 Details

    • KeyRowInsertEvent

      public KeyRowInsertEvent(ILayer layer, int rowIndex, Object key, CellKeyHandler<?> keyHandler)
      Creates a KeyRowInsertEvent for 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 - The CellKeyHandler that was used to create the key.
    • KeyRowInsertEvent

      public KeyRowInsertEvent(ILayer layer, Range rowPositionRange, Collection<Object> keys, CellKeyHandler<?> keyHandler)
      Creates a KeyRowInsertEvent for 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 - The CellKeyHandler that was used to create the key.
    • KeyRowInsertEvent

      public KeyRowInsertEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Object> keys, CellKeyHandler<?> keyHandler)
      Creates a KeyRowInsertEvent for 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 - The CellKeyHandler that was used to create the key.
    • KeyRowInsertEvent

      protected KeyRowInsertEvent(KeyRowInsertEvent event)
      Clone constructor.
      Parameters:
      event - The event to clone.
  • Method Details