Class HideRowPositionsEvent
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
-
- org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
-
- org.eclipse.nebula.widgets.nattable.hideshow.event.HideRowPositionsEvent
-
- All Implemented Interfaces:
ILayerEvent
,IStructuralChangeEvent
,IVisualChangeEvent
public class HideRowPositionsEvent extends RowStructuralChangeEvent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HideRowPositionsEvent(HideRowPositionsEvent event)
Clone constructor.HideRowPositionsEvent(ILayer layer, int... rowPositions)
Creates a new HideRowPositionsEvent based on the given information.HideRowPositionsEvent(ILayer layer, int[] rowPositions, int[] rowIndexes)
Creates a new HideRowPositionsEvent based on the given information.HideRowPositionsEvent(ILayer layer, Collection<Integer> rowPositions)
Creates a new HideRowPositionsEvent based on the given information.HideRowPositionsEvent(ILayer layer, Collection<Integer> rowPositions, Collection<Integer> rowIndexes)
Creates a new HideRowPositionsEvent based on the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HideRowPositionsEvent
cloneEvent()
boolean
convertToLocal(ILayer localLayer)
Convert the column/row positions carried by the event to the layer about to handle the event.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
-
HideRowPositionsEvent
public HideRowPositionsEvent(ILayer layer, Collection<Integer> rowPositions)
Creates a new HideRowPositionsEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositions
- The positions of the rows that have changed.
-
HideRowPositionsEvent
public HideRowPositionsEvent(ILayer layer, int... rowPositions)
Creates a new HideRowPositionsEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositions
- The positions of the rows that have changed.- Since:
- 2.0
-
HideRowPositionsEvent
public HideRowPositionsEvent(ILayer layer, Collection<Integer> rowPositions, Collection<Integer> rowIndexes)
Creates a new HideRowPositionsEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositions
- The positions of the rows that have changed.rowIndexes
- The indexes of the rows that have changed.- Since:
- 1.6
-
HideRowPositionsEvent
public HideRowPositionsEvent(ILayer layer, int[] rowPositions, int[] rowIndexes)
Creates a new HideRowPositionsEvent based on the given information.- Parameters:
layer
- The ILayer to which the given row positions match.rowPositions
- The positions of the rows that have changed.rowIndexes
- The indexes of the rows that have changed.- Since:
- 2.0
-
HideRowPositionsEvent
protected HideRowPositionsEvent(HideRowPositionsEvent event)
Clone constructor.- Parameters:
event
- The event to clone.
-
-
Method Detail
-
cloneEvent
public HideRowPositionsEvent cloneEvent()
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
getRowDiffs
public Collection<StructuralDiff> getRowDiffs()
-
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
-
-