API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.event. TreeModelEvent View Source
Author(s)
Rob Davis
Ray Ryan
Scott Violet
Since
Version
1.34 11/17/05
Serial
Hierarchy
 Object
      EventObject
          TreeModelEvent
Implements
Subclasses
Description
public class TreeModelEvent
  Encapsulates information describing changes to a tree model, and used to notify tree model listeners of the change.
See also:   
Constructors
public TreeModelEvent (Object source, Object path)
  Used to create an event when the node structure has changed in some way, identifying the path to the root of a modified subtree as an array of Objects.
public TreeModelEvent (Object source, Object path, int[] childIndices, Object children)
  Used to create an event when nodes have been changed, inserted, or removed, identifying the path to the parent of the modified items as an array of Objects.
public TreeModelEvent (Object source, TreePath path)
  Used to create an event when the node structure has changed in some way, identifying the path to the root of the modified subtree as a TreePath object.
public TreeModelEvent (Object source, TreePath path, int[] childIndices, Object children)
  Used to create an event when nodes have been changed, inserted, or removed, identifying the path to the parent of the modified items as a TreePath object.
Methods
Hide/Show inherited methods
public int getChildIndices ()
  Returns the values of the child indexes.
public Object getChildren ()
  Returns the objects that are children of the node identified by getPath at the locations specified by getChildIndices.
public Object getPath ()
  Convenience method to get the array of objects from the TreePath instance that this event wraps.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public TreePath getTreePath ()
  For all events, except treeStructureChanged, returns the parent of the changed nodes.
public String toString () [Overrides EventObject]
  Returns a string that displays and identifies this object's properties.
Fields
Hide/Show inherited fields
protected int childIndices
Indices identifying the position of where the children were.
protected Object children
Children that have been removed.
protected TreePath path
Path to the parent of the nodes that have changed.
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar