Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.event
Class GroupTableColumnModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.sciapp.event.GroupTableColumnModelEvent
All Implemented Interfaces:
Serializable

public class GroupTableColumnModelEvent
extends EventObject

An event used to notify listeners that a group table column model has changed, such as group columns were added or removed.

See Also:
Serialized Form

Field Summary
protected  int[] childIndices
          Indices identifying the position of where the children were added or removed
protected  TableColumn[] children
          Children that have been added or removed
protected  GroupTableColumn groupColumn
          The parent group column of the columns that have been added or removed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GroupTableColumnModelEvent(Object source, GroupTableColumn groupColumn)
          Constructs a GroupTableColumnModelEvent.
GroupTableColumnModelEvent(Object source, GroupTableColumn groupColumn, int[] childIndices, TableColumn[] children)
          Constructs a GroupTableColumnModelEvent.
 
Method Summary
 int[] getChildIndices()
          Returns the values of the child indexes.
 TableColumn[] getChildren()
          Returns the columns that are children of the group column identified by getGroupColumn at the locations specified by getChildIndices.
 GroupTableColumn getGroupColumn()
          Returns the parent group column of the columns that have been added or removed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

childIndices

protected int[] childIndices
Indices identifying the position of where the children were added or removed


children

protected TableColumn[] children
Children that have been added or removed


groupColumn

protected GroupTableColumn groupColumn
The parent group column of the columns that have been added or removed

Constructor Detail

GroupTableColumnModelEvent

public GroupTableColumnModelEvent(Object source,
                                  GroupTableColumn groupColumn)
Constructs a GroupTableColumnModelEvent.


GroupTableColumnModelEvent

public GroupTableColumnModelEvent(Object source,
                                  GroupTableColumn groupColumn,
                                  int[] childIndices,
                                  TableColumn[] children)
Constructs a GroupTableColumnModelEvent.

Method Detail

getChildIndices

public int[] getChildIndices()
Returns the values of the child indexes. If this is a removal event the indexes point to locations in the initial list where items were removed. If it is an insert, the indices point to locations in the final list where the items were added.


getChildren

public TableColumn[] getChildren()
Returns the columns that are children of the group column identified by getGroupColumn at the locations specified by getChildIndices. If this is a removal event the returned objects are no longer children of the group column.


getGroupColumn

public GroupTableColumn getGroupColumn()
Returns the parent group column of the columns that have been added or removed.


Copyright © 2005 Scientific Applications. All Rights Reserved.