Class CellVisualUpdateEvent
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
org.eclipse.nebula.widgets.nattable.layer.event.CellVisualUpdateEvent
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
Specialization of the CellVisualChangeEvent. The only difference is the
handling of this type of event in the NatTable event handling. While the
CellVisualChangeEvent causes a whole redraw operation of the visible part
(which is necessary to update everything if a data value has change, for
example important for conditional styling), this event only forces to redraw
the specified cell itself. This is for example necessary for hover styling,
where redrawing everything is not necessary and would cause lags in applying
hover styling.
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
columnPosition, layer, rowPosition
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new CellVisualUpdateEvent out of the given event.CellVisualUpdateEvent
(ILayer layer, int columnPosition, int rowPosition) Create a new CellVisualUpdateEvent 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.Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
getChangedPositionRectangles, getColumnPosition, getLayer, getRowPosition
-
Constructor Details
-
CellVisualUpdateEvent
Create a new CellVisualUpdateEvent based on the given information.- Parameters:
layer
- The layer to which the given column and row position belong.columnPosition
- The column position of the cell that needs to be redrawn.rowPosition
- The row position of the cell that needs to be redrawn.
-
CellVisualUpdateEvent
Create a new CellVisualUpdateEvent out of the given event. Used internally for cloning purposes.- Parameters:
event
- The event to create the clone from.
-
-
Method Details
-
cloneEvent
- Specified by:
cloneEvent
in interfaceILayerEvent
- Overrides:
cloneEvent
in classCellVisualChangeEvent
- 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
- Overrides:
convertToLocal
in classCellVisualChangeEvent
- Parameters:
localLayer
- layer about to receive the event- Returns:
- TRUE if successfully converted, FALSE otherwise
-