Where Am I? Class Hierarchy (JFC) All Classes (JFC)

Class com.sun.java.swing.event.TreeModelEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.sun.java.swing.event.TreeModelEvent

public class TreeModelEvent
extends EventObject

TreeChangeEvent is used to notify listeners that a tree model has changed.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

childIndices
Indices identifying the position of where the children were.
children
Children that have been removed.
path
Path to the parent of the nodes that have changed.

Constructor Index

TreeModelEvent(Object, Object[])
TreeModelEvent(Object, Object[], int[], Object[])
TreeModelEvent(Object, TreePath)
TreeModelEvent(Object, TreePath, int[], Object[])

Method Index

getChildIndices()
getChildren()
Returns the objects that are children of the node identified by path at the locations childIndices (if this is removal event the *children will no longer be children).
getPath()
Convenience method to get the Object[] path from the JTreePath instance that this event wraps.
getTreePath()
toString()

Variables

path
 protected TreePath path
Path to the parent of the nodes that have changed.

childIndices
 protected int childIndices[]
Indices identifying the position of where the children were.

children
 protected Object children[]
Children that have been removed.


Constructors

TreeModelEvent
 public TreeModelEvent(Object source,
                       Object path[],
                       int childIndices[],
                       Object children[])
TreeModelEvent
 public TreeModelEvent(Object source,
                       Object path[])
TreeModelEvent
 public TreeModelEvent(Object source,
                       TreePath path,
                       int childIndices[],
                       Object children[])
TreeModelEvent
 public TreeModelEvent(Object source,
                       TreePath path)

Methods

getTreePath
 public TreePath getTreePath()
getPath
 public Object[] getPath()
Convenience method to get the Object[] path from the JTreePath instance that this event wraps.

getChildren
 public Object[] getChildren()
Returns the objects that are children of the node identified by path at the locations childIndices (if this is removal event the *children will no longer be children).

getChildIndices
 public int[] getChildIndices()
toString
 public String toString()
Overrides:
toString in class EventObject

Where Am I? Class Hierarchy (JFC) All Classes (JFC)