NodeType
- the node type parameter of the TypedTreeModel to which this event
appliespublic class TypedTreeModelEvent<NodeType> extends Object
TreeModelEvent
Modifier and Type | Field and Description |
---|---|
protected int[] |
childIndices |
protected NodeType[] |
children |
protected TreePath |
path |
protected Object |
source |
Constructor and Description |
---|
TypedTreeModelEvent(Object source,
NodeType[] 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.
|
TypedTreeModelEvent(Object source,
NodeType[] path,
int[] childIndices,
NodeType[] 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.
|
TypedTreeModelEvent(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.
|
TypedTreeModelEvent(Object source,
TreePath path,
int[] childIndices,
NodeType[] 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.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getChildIndices()
Returns the values of the child indexes.
|
NodeType[] |
getChildren()
Returns the objects that are children of the node identified by getPath
at the locations specified by getChildIndices.
|
Object |
getSource()
The object on which the Event initially occurred.
|
TreePath |
getTreePath()
For all events, except treeStructureChanged, returns the parent of the
changed nodes.
|
String |
toString()
Returns a string that displays and identifies this object's properties.
|
protected int[] childIndices
protected NodeType[] children
protected TreePath path
protected Object source
public TypedTreeModelEvent(Object source, NodeType[] path)
source
- path
- public TypedTreeModelEvent(Object source, TreePath path)
source
- path
- public TypedTreeModelEvent(Object source, TreePath path, int[] childIndices, NodeType[] children)
source
- path
- childIndices
- children
- public TypedTreeModelEvent(Object source, NodeType[] path, int[] childIndices, NodeType[] children)
source
- path
- childIndices
- children
- public int[] getChildIndices()
public NodeType[] getChildren()
public Object getSource()
public TreePath getTreePath()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.