Class RowVisualChangeEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
- Direct Known Subclasses:
RowSelectionEvent
,RowStructuralChangeEvent
,RowUpdateEvent
,RowVisualUpdateEvent
An event that indicates a visible change to one ore more rows in the layer.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new RowVisualChangeEvent based on the given instance.RowVisualChangeEvent
(ILayer layer, int rowPosition) Creates a new RowVisualChangeEvent based on the given information.RowVisualChangeEvent
(ILayer layer, Collection<Range> rowPositionRanges) Creates a new RowVisualChangeEvent based on the given information.RowVisualChangeEvent
(ILayer layer, Collection<Range> rowPositionRanges, int... rowIndexes) Creates a new RowVisualChangeEvent based on the given information.RowVisualChangeEvent
(ILayer layer, Collection<Range> rowPositionRanges, Collection<Integer> rowIndexes) Creates a new RowVisualChangeEvent based on the given information.RowVisualChangeEvent
(ILayer layer, Range... rowPositionRanges) Creates a new RowVisualChangeEvent based on the given information. -
Method Summary
Modifier and TypeMethodDescriptionboolean
convertToLocal
(ILayer localLayer) Convert the column/row positions carried by the event to the layer about to handle the event.Collection<org.eclipse.swt.graphics.Rectangle>
getLayer()
int[]
protected void
setRowPositionRanges
(Collection<Range> rowPositionRanges) Sets the row position ranges for the rows that have changed.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
-
Constructor Details
-
RowVisualChangeEvent
Creates a new RowVisualChangeEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row position matches.rowPosition
- The row position of the row that has changed.
-
RowVisualChangeEvent
Creates a new RowVisualChangeEvent 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.
-
RowVisualChangeEvent
Creates a new RowVisualChangeEvent 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.
-
RowVisualChangeEvent
public RowVisualChangeEvent(ILayer layer, Collection<Range> rowPositionRanges, Collection<Integer> rowIndexes) Creates a new RowVisualChangeEvent 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.rowIndexes
- The indexes of the rows that have changed.- Since:
- 1.6
-
RowVisualChangeEvent
Creates a new RowVisualChangeEvent 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.rowIndexes
- The indexes of the rows that have changed.- Since:
- 2.0
-
RowVisualChangeEvent
Creates a new RowVisualChangeEvent based on the given instance. Mainly needed for cloning.- Parameters:
event
- The RowVisualChangeEvent out of which the new instance should be created.
-
-
Method Details
-
getLayer
- Specified by:
getLayer
in interfaceIVisualChangeEvent
- Returns:
- the layer that the visible change event is originating from.
-
getRowPositionRanges
- Returns:
- The row position ranges for the rows that have changed.
-
setRowPositionRanges
Sets the row position ranges for the rows that have changed. Only for internal use in cases where the constructor needs to calculate the row position ranges within the child constructor.- Parameters:
rowPositionRanges
- The row position ranges for the rows that have changed.
-
getRowIndexes
public int[] getRowIndexes()- Returns:
- The indexes of the rows that have changed.
- Since:
- 2.0
-
convertToLocal
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
- Parameters:
localLayer
- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-
getChangedPositionRectangles
- Specified by:
getChangedPositionRectangles
in interfaceIVisualChangeEvent
- 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.
-
toString
-