Class java.awt.swing.event.TreeModelEvent
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.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.
Field Summary
|
int[]
|
childIndices
Indices identifying the position of where the children were.
|
Object[]
|
children
Children that have been removed.
|
TreePath
|
path
Path to the parent of the nodes that have changed.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)
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
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.