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

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.event.CellVisualChangeEvent
All Implemented Interfaces:
ILayerEvent, IVisualChangeEvent
Direct Known Subclasses:
CellSelectionEvent, CellVisualUpdateEvent

public class CellVisualChangeEvent
extends Object
implements IVisualChangeEvent


Field Summary
protected  int columnPosition
           
protected  ILayer layer
           
protected  int rowPosition
           
 
Constructor Summary
protected CellVisualChangeEvent(CellVisualChangeEvent event)
           
  CellVisualChangeEvent(ILayer layer, int columnPosition, int rowPosition)
           
 
Method Summary
 CellVisualChangeEvent cloneEvent()
           
 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()
           
 int getColumnPosition()
           
 ILayer getLayer()
           
 int getRowPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layer

protected ILayer layer

columnPosition

protected int columnPosition

rowPosition

protected int rowPosition
Constructor Detail

CellVisualChangeEvent

public CellVisualChangeEvent(ILayer layer,
                             int columnPosition,
                             int rowPosition)

CellVisualChangeEvent

protected CellVisualChangeEvent(CellVisualChangeEvent event)
Method Detail

getLayer

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

getColumnPosition

public int getColumnPosition()

getRowPosition

public int getRowPosition()

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.

cloneEvent

public CellVisualChangeEvent cloneEvent()
Specified by:
cloneEvent in interface ILayerEvent
Returns:
A cloned copy of the event. This cloned copy is provided to each listener.


Copyright © 2014. All rights reserved.