Class RowDeleteEvent
- 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
-
- All Implemented Interfaces:
ILayerEvent
,IStructuralChangeEvent
,IVisualChangeEvent
- Direct Known Subclasses:
RowObjectDeleteEvent
public class RowDeleteEvent extends RowStructuralChangeEvent
Event indicating that one ore more rows were deleted from the layer.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RowDeleteEvent(RowDeleteEvent event)
Creates a new RowDeleteEvent based on the given instance.RowDeleteEvent(ILayer layer, int rowPosition)
Creates a new RowDeleteEvent based on the given information.RowDeleteEvent(ILayer layer, Collection<Range> rowPositionRanges)
Creates a new RowDeleteEvent based on the given information.RowDeleteEvent(ILayer layer, Range... rowPositionRanges)
Creates a new RowDeleteEvent based on the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowDeleteEvent
cloneEvent()
boolean
convertToLocal(ILayer localLayer)
Convert the column/row positions carried by the event to the layer about to handle the event.Collection<Integer>
getDeletedRowIndexes()
Collection<StructuralDiff>
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 Detail
-
RowDeleteEvent
public RowDeleteEvent(ILayer layer, int rowPosition)
Creates a new RowDeleteEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row position matches.rowPosition
- The row position of the row that was deleted.
-
RowDeleteEvent
public RowDeleteEvent(ILayer layer, Range... rowPositionRanges)
Creates a new RowDeleteEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositionRanges
- The row position ranges for the rows that were deleted.
-
RowDeleteEvent
public RowDeleteEvent(ILayer layer, Collection<Range> rowPositionRanges)
Creates a new RowDeleteEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositionRanges
- The row position ranges for the rows that were deleted.
-
RowDeleteEvent
protected RowDeleteEvent(RowDeleteEvent event)
Creates a new RowDeleteEvent based on the given instance. Mainly needed for cloning.- Parameters:
event
- The RowDeleteEvent out of which the new instance should be created.
-
-
Method Detail
-
cloneEvent
public RowDeleteEvent cloneEvent()
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
convertToLocal
public boolean convertToLocal(ILayer localLayer)
Description copied from interface:ILayerEvent
Convert the column/row positions carried by the event to the layer about to handle the event.- Specified by:
convertToLocal
in interfaceILayerEvent
- Overrides:
convertToLocal
in classRowVisualChangeEvent
- Parameters:
localLayer
- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-
getDeletedRowIndexes
public Collection<Integer> getDeletedRowIndexes()
-
getRowDiffs
public Collection<StructuralDiff> getRowDiffs()
-
-