Class RowStructuralChangeEvent
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
-
- org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
-
- All Implemented Interfaces:
ILayerEvent
,IStructuralChangeEvent
,IVisualChangeEvent
- Direct Known Subclasses:
HideRowPositionsEvent
,RowDeleteEvent
,RowInsertEvent
,RowReorderEvent
,RowResizeEvent
,ShowRowPositionsEvent
public abstract class RowStructuralChangeEvent extends RowVisualChangeEvent implements IStructuralChangeEvent
Event indicating a change in the structure of the rows. This event carried RowDiffs (Collection<StructuralDiff>) indicating the rows which have changed.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RowStructuralChangeEvent(RowStructuralChangeEvent event)
Creates a new RowStructuralChangeEvent based on the given instance.RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges)
Creates a new RowStructuralChangeEvent based on the given information.RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges, int... rowIndexes)
Creates a new RowStructuralChangeEvent based on the given information.RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Integer> rowIndexes)
Creates a new RowStructuralChangeEvent based on the given information.RowStructuralChangeEvent(ILayer layer, Range... rowPositionRanges)
Creates a new RowStructuralChangeEvent based on the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.eclipse.swt.graphics.Rectangle>
getChangedPositionRectangles()
Collection<StructuralDiff>
getColumnDiffs()
boolean
isHorizontalStructureChanged()
boolean
isVerticalStructureChanged()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
convertToLocal, 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.ILayerEvent
cloneEvent, convertToLocal
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.IStructuralChangeEvent
getRowDiffs
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.IVisualChangeEvent
getLayer
-
-
-
-
Constructor Detail
-
RowStructuralChangeEvent
public RowStructuralChangeEvent(ILayer layer, Range... rowPositionRanges)
Creates a new RowStructuralChangeEvent 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 have changed.
-
RowStructuralChangeEvent
public RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges)
Creates a new RowStructuralChangeEvent based on the given information.- Parameters:
layer
- The ILayer to which the given column positions match.rowPositionRanges
- The row position ranges for the rows that have changed.
-
RowStructuralChangeEvent
public RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Integer> rowIndexes)
Creates a new RowStructuralChangeEvent 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 have changed.rowIndexes
- The indexes of the rows that have changed.- Since:
- 1.6
-
RowStructuralChangeEvent
public RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges, int... rowIndexes)
Creates a new RowStructuralChangeEvent 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 have changed.rowIndexes
- The indexes of the rows that have changed.- Since:
- 2.0
-
RowStructuralChangeEvent
protected RowStructuralChangeEvent(RowStructuralChangeEvent event)
Creates a new RowStructuralChangeEvent based on the given instance. Mainly needed for cloning.- Parameters:
event
- The RowStructuralChangeEvent out of which the new instance should be created.
-
-
Method Detail
-
getChangedPositionRectangles
public Collection<org.eclipse.swt.graphics.Rectangle> getChangedPositionRectangles()
- Specified by:
getChangedPositionRectangles
in interfaceIVisualChangeEvent
- Overrides:
getChangedPositionRectangles
in classRowVisualChangeEvent
- Returns:
- the position rectangles that have changed and need to be redrawn. If no rectangles are returned, then the receiver should assume that the entire layer is changed and will need to be redrawn.
-
isHorizontalStructureChanged
public boolean isHorizontalStructureChanged()
- Specified by:
isHorizontalStructureChanged
in interfaceIStructuralChangeEvent
-
isVerticalStructureChanged
public boolean isVerticalStructureChanged()
- Specified by:
isVerticalStructureChanged
in interfaceIStructuralChangeEvent
-
getColumnDiffs
public Collection<StructuralDiff> getColumnDiffs()
- Specified by:
getColumnDiffs
in interfaceIStructuralChangeEvent
-
-