All Packages Class Hierarchy This Package Previous Next Index
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.
-
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.
-
TreeModelEvent(Object, Object[])
-
-
TreeModelEvent(Object, Object[], int[], Object[])
-
-
TreeModelEvent(Object, TreePath)
-
-
TreeModelEvent(Object, TreePath, int[], Object[])
-
-
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()
-
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
All Packages Class Hierarchy This Package Previous Next Index