org.eclipse.nebula.widgets.nattable.layer.event
Class RowVisualUpdateEvent

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
      extended by org.eclipse.nebula.widgets.nattable.layer.event.RowVisualUpdateEvent
All Implemented Interfaces:
ILayerEvent, IVisualChangeEvent

public class RowVisualUpdateEvent
extends RowVisualChangeEvent

Specialization of the RowVisualChangeEvent. The only difference is the handling of this type of event in the NatTable event handling. While the RowVisualChangeEvent 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 row itself.

Author:
Dirk Fauth

Constructor Summary
  RowVisualUpdateEvent(ILayer layer, int rowPosition)
          Create a new RowVisualUpdateEvent based on the given information.
  RowVisualUpdateEvent(IUniqueIndexLayer layer, Collection<Integer> rowPositions)
          Create a new RowVisualUpdateEvent based on the given information.
  RowVisualUpdateEvent(IUniqueIndexLayer layer, int[] rowPositions)
          Create a new RowVisualUpdateEvent based on the given information.
protected RowVisualUpdateEvent(RowVisualUpdateEvent event)
          Create a new RowVisualUpdateEvent out of the given event.
 
Method Summary
 RowVisualUpdateEvent cloneEvent()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
convertToLocal, getChangedPositionRectangles, getLayer, getRowPositionRanges, setRowPositionRanges, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowVisualUpdateEvent

public RowVisualUpdateEvent(ILayer layer,
                            int rowPosition)
Create a new RowVisualUpdateEvent based on the given information.

Parameters:
layer - The layer to which the given row position belongs.
rowPosition - The row position of the row that needs to be redrawn.

RowVisualUpdateEvent

public RowVisualUpdateEvent(IUniqueIndexLayer layer,
                            int[] rowPositions)
Create a new RowVisualUpdateEvent based on the given information.

Parameters:
layer - The layer to which the given column and row position belong.
rowPositions - The row positions of the rows that need to be redrawn.

RowVisualUpdateEvent

public RowVisualUpdateEvent(IUniqueIndexLayer layer,
                            Collection<Integer> rowPositions)
Create a new RowVisualUpdateEvent based on the given information.

Parameters:
layer - The layer to which the given row positions belong.
rowPositions - The row positions of the rows that need to be redrawn.

RowVisualUpdateEvent

protected RowVisualUpdateEvent(RowVisualUpdateEvent event)
Create a new RowVisualUpdateEvent out of the given event. Used internally for cloning purposes.

Parameters:
event - The event to create the clone from.
Method Detail

cloneEvent

public RowVisualUpdateEvent cloneEvent()
Returns:
A cloned copy of the event. This cloned copy is provided to each listener.


Copyright © 2015. All rights reserved.