All Packages Class Hierarchy This Package Previous Next Index
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.
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()
- Returns a string representation of the object.
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()
- Returns a string representation of the object.
- Overrides:
- toString in class EventObject
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature