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

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
      extended by org.eclipse.nebula.widgets.nattable.layer.event.RowStructuralChangeEvent
All Implemented Interfaces:
ILayerEvent, IStructuralChangeEvent, IVisualChangeEvent
Direct Known Subclasses:
HideRowPositionsEvent, RowDeleteEvent, RowInsertEvent, RowReorderEvent, RowResizeEvent, ShowRowPositionsEvent

public abstract class RowStructuralChangeEvent
extends RowVisualChangeEvent
implements IStructuralChangeEvent

See Also:
ColumnStructuralChangeEvent

Constructor Summary
  RowStructuralChangeEvent(ILayer layer, Collection<Range> rowPositionRanges)
           
  RowStructuralChangeEvent(ILayer layer, Range... rowPositionRanges)
           
protected RowStructuralChangeEvent(RowStructuralChangeEvent event)
           
 
Method Summary
 Collection<org.eclipse.swt.graphics.Rectangle> getChangedPositionRectangles()
           
 Collection<StructuralDiff> getColumnDiffs()
           
 boolean isHorizontalStructureChanged()
           
 boolean isVerticalStructureChanged()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.RowVisualChangeEvent
convertToLocal, getLayer, getRowPositionRanges, setRowPositionRanges, 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.IStructuralChangeEvent
getRowDiffs
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.IVisualChangeEvent
getLayer
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent
cloneEvent, convertToLocal
 

Constructor Detail

RowStructuralChangeEvent

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

RowStructuralChangeEvent

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

RowStructuralChangeEvent

protected RowStructuralChangeEvent(RowStructuralChangeEvent event)
Method Detail

getChangedPositionRectangles

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

isHorizontalStructureChanged

public boolean isHorizontalStructureChanged()
Specified by:
isHorizontalStructureChanged in interface IStructuralChangeEvent

getColumnDiffs

public Collection<StructuralDiff> getColumnDiffs()
Specified by:
getColumnDiffs in interface IStructuralChangeEvent

isVerticalStructureChanged

public boolean isVerticalStructureChanged()
Specified by:
isVerticalStructureChanged in interface IStructuralChangeEvent


Copyright © 2015. All rights reserved.