public class NodeTreeModel extends DefaultTreeModel
asksAllowsChildren, listenerList, root
Constructor and Description |
---|
NodeTreeModel()
Creates new NodeTreeModel
|
NodeTreeModel(Node root)
Creates new NodeTreeModel
|
Modifier and Type | Method and Description |
---|---|
void |
setNode(Node root)
Changes the root of the model.
|
void |
valueForPathChanged(TreePath path,
Object newValue)
This sets the user object of the TreeNode identified by path
and posts a node changed.
|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot
public NodeTreeModel()
public NodeTreeModel(Node root)
root
- the root of the modelpublic void setNode(Node root)
root
- the root of the modelpublic void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
valueForPathChanged
in class DefaultTreeModel
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.