Class ColumnVisualUpdateEvent
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualChangeEvent
-
- org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualUpdateEvent
-
- All Implemented Interfaces:
ILayerEvent
,IVisualChangeEvent
public class ColumnVisualUpdateEvent extends ColumnVisualChangeEvent
Specialization of the ColumnVisualChangeEvent. The only difference is the handling of this type of event in the NatTable event handling. While the ColumnVisualChangeEvent 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 column itself.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ColumnVisualUpdateEvent(ColumnVisualUpdateEvent event)
Create a new ColumnVisualUpdateEvent out of the given event.ColumnVisualUpdateEvent(ILayer layer, int columnPosition)
Create a new ColumnVisualUpdateEvent based on the given information.ColumnVisualUpdateEvent(IUniqueIndexLayer layer, int[] columnPositions)
Create a new ColumnVisualUpdateEvent based on the given information.ColumnVisualUpdateEvent(IUniqueIndexLayer layer, Collection<Integer> columnPositions)
Create a new ColumnVisualUpdateEvent based on the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnVisualUpdateEvent
cloneEvent()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualChangeEvent
convertToLocal, getChangedPositionRectangles, getColumnIndexes, getColumnPositionRanges, getLayer, setColumnPositionRanges, toString
-
-
-
-
Constructor Detail
-
ColumnVisualUpdateEvent
public ColumnVisualUpdateEvent(ILayer layer, int columnPosition)
Create a new ColumnVisualUpdateEvent based on the given information.- Parameters:
layer
- The layer to which the given column position belongs.columnPosition
- The column position of the column that needs to be redrawn.
-
ColumnVisualUpdateEvent
public ColumnVisualUpdateEvent(IUniqueIndexLayer layer, int[] columnPositions)
Create a new ColumnVisualUpdateEvent based on the given information.- Parameters:
layer
- The layer to which the given column positions belong.columnPositions
- The column positions of the columns that need to be redrawn.
-
ColumnVisualUpdateEvent
public ColumnVisualUpdateEvent(IUniqueIndexLayer layer, Collection<Integer> columnPositions)
Create a new ColumnVisualUpdateEvent based on the given information.- Parameters:
layer
- The layer to which the given column positions belong.columnPositions
- The column position of the columns that need to be redrawn.
-
ColumnVisualUpdateEvent
protected ColumnVisualUpdateEvent(ColumnVisualUpdateEvent event)
Create a new ColumnVisualUpdateEvent out of the given event. Used internally for cloning purposes.- Parameters:
event
- The event to create the clone from.
-
-
Method Detail
-
cloneEvent
public ColumnVisualUpdateEvent cloneEvent()
- Returns:
- A cloned copy of the event. This cloned copy is provided to each listener.
-
-