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

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualChangeEvent
      extended by org.eclipse.nebula.widgets.nattable.layer.event.ColumnStructuralChangeEvent
          extended by org.eclipse.nebula.widgets.nattable.layer.event.ColumnInsertEvent
All Implemented Interfaces:
ILayerEvent, IStructuralChangeEvent, IVisualChangeEvent

public class ColumnInsertEvent
extends ColumnStructuralChangeEvent

Event indicating that one ore more columns were inserted to the layer.

Author:
Dirk Fauth

Constructor Summary
protected ColumnInsertEvent(ColumnStructuralChangeEvent event)
          Creates a new ColumnInsertEvent based on the given instance.
  ColumnInsertEvent(ILayer layer, Collection<Range> columnPositionRanges)
          Creates a new ColumnInsertEvent based on the given information.
  ColumnInsertEvent(ILayer layer, int columnPosition)
          Creates a new ColumnInsertEvent based on the given information.
  ColumnInsertEvent(ILayer layer, Range... columnPositionRanges)
          Creates a new ColumnInsertEvent based on the given information.
 
Method Summary
 ColumnInsertEvent cloneEvent()
           
 Collection<StructuralDiff> getColumnDiffs()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.ColumnStructuralChangeEvent
getChangedPositionRectangles, getRowDiffs, isHorizontalStructureChanged, isVerticalStructureChanged
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualChangeEvent
convertToLocal, getColumnPositionRanges, getLayer, setColumnPositionRanges, 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.IVisualChangeEvent
getLayer
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent
convertToLocal
 

Constructor Detail

ColumnInsertEvent

public ColumnInsertEvent(ILayer layer,
                         int columnPosition)
Creates a new ColumnInsertEvent based on the given information.

Parameters:
layer - The ILayer to which the given column position matches.
columnPosition - The column position of the column that was inserted.

ColumnInsertEvent

public ColumnInsertEvent(ILayer layer,
                         Range... columnPositionRanges)
Creates a new ColumnInsertEvent based on the given information.

Parameters:
layer - The ILayer to which the given column positions match.
columnPositionRanges - The column position ranges for the columns that were inserted.

ColumnInsertEvent

public ColumnInsertEvent(ILayer layer,
                         Collection<Range> columnPositionRanges)
Creates a new ColumnInsertEvent based on the given information.

Parameters:
layer - The ILayer to which the given column positions match.
columnPositionRanges - The column position ranges for the columns that were inserted.

ColumnInsertEvent

protected ColumnInsertEvent(ColumnStructuralChangeEvent event)
Creates a new ColumnInsertEvent based on the given instance. Mainly needed for cloning.

Parameters:
event - The ColumnInsertEvent out of which the new instance should be created.
Method Detail

getColumnDiffs

public Collection<StructuralDiff> getColumnDiffs()

cloneEvent

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


Copyright © 2014. All rights reserved.