NodeType
- Type of the node within the TypedTreeModel and used to
parameterize the typed version of the tree model event.public interface TypedTreeModelListener<NodeType>
TreeModelListener
Modifier and Type | Method and Description |
---|---|
void |
treeNodesChanged(TypedTreeModelEvent<NodeType> e)
Invoked after a node (or a set of siblings) has changed in some way.
|
void |
treeNodesInserted(TypedTreeModelEvent<NodeType> e)
Invoked after nodes have been inserted into the tree.
|
void |
treeNodesRemoved(TypedTreeModelEvent<NodeType> e)
Invoked after nodes have been removed from the tree.
|
void |
treeStructureChanged(TypedTreeModelEvent<NodeType> e)
Invoked after the tree has drastically changed structure from a given
node down.
|
void treeNodesChanged(TypedTreeModelEvent<NodeType> e)
To indicate the root has changed, childIndices and children will be null.
Use e.getPath()
to get the parent of the changed node(s).
e.getChildIndices()
returns the index(es) of the changed
node(s).
void treeNodesInserted(TypedTreeModelEvent<NodeType> e)
Use e.getPath()
to get the parent of the new node(s).
e.getChildIndices()
returns the index(es) of the new node(s)
in ascending order.
void treeNodesRemoved(TypedTreeModelEvent<NodeType> e)
Use e.getPath()
to get the former parent of the deleted
node(s). e.getChildIndices()
returns, in ascending order,
the index(es) the node(s) had before being deleted.
void treeStructureChanged(TypedTreeModelEvent<NodeType> e)
e.getPath()
is of length
one and the first element does not identify the current root node the
first element should become the new root of the tree.
Use
e.getPath()
to get the path to the node.
e.getChildIndices()
returns null
.
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.