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

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
All Implemented Interfaces:
ILayerEvent, IVisualChangeEvent
Direct Known Subclasses:
RowSelectionEvent, RowStructuralChangeEvent, RowUpdateEvent, RowVisualUpdateEvent

public abstract class RowVisualChangeEvent
extends Object
implements IVisualChangeEvent


Constructor Summary
  RowVisualChangeEvent(ILayer layer, Collection<Range> rowPositionRanges)
           
  RowVisualChangeEvent(ILayer layer, int rowPosition)
           
  RowVisualChangeEvent(ILayer layer, Range... rowPositionRanges)
           
protected RowVisualChangeEvent(RowVisualChangeEvent event)
           
 
Method Summary
 boolean 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> getChangedPositionRectangles()
           
 ILayer getLayer()
           
 Collection<Range> getRowPositionRanges()
           
protected  void setRowPositionRanges(Collection<Range> rowPositionRanges)
           
 String 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.ILayerEvent
cloneEvent
 

Constructor Detail

RowVisualChangeEvent

public RowVisualChangeEvent(ILayer layer,
                            int rowPosition)

RowVisualChangeEvent

public RowVisualChangeEvent(ILayer layer,
                            Range... rowPositionRanges)

RowVisualChangeEvent

public RowVisualChangeEvent(ILayer layer,
                            Collection<Range> rowPositionRanges)

RowVisualChangeEvent

protected RowVisualChangeEvent(RowVisualChangeEvent event)
Method Detail

getLayer

public ILayer getLayer()
Specified by:
getLayer in interface IVisualChangeEvent
Returns:
the layer that the visible change event is originating from.

getRowPositionRanges

public Collection<Range> getRowPositionRanges()

setRowPositionRanges

protected void setRowPositionRanges(Collection<Range> rowPositionRanges)

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 interface ILayerEvent
Parameters:
localLayer - layer about to receive the event
Returns:
TRUE if successfully converted, FALSE otherwise

getChangedPositionRectangles

public Collection<org.eclipse.swt.graphics.Rectangle> getChangedPositionRectangles()
Specified by:
getChangedPositionRectangles in interface IVisualChangeEvent
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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.