Class LayerEventFixture
java.lang.Object
org.eclipse.nebula.widgets.nattable.test.fixture.LayerEventFixture
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
-
Constructor Summary
-
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()
-
Constructor Details
-
LayerEventFixture
public LayerEventFixture()
-
-
Method Details
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
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.
-
getLayer
- Specified by:
getLayer
in interfaceIVisualChangeEvent
- Returns:
- the layer that the visible change event is originating from.
-