public class IlpTreeModel extends DefaultTreeModel implements TreeModel
asksAllowsChildren, listenerList, root| Constructor and Description |
|---|
IlpTreeModel()
Creates a tree in which any node can have children.
|
IlpTreeModel(boolean asksAllowsChildren)
Creates a tree specifying whether any node can have children,
or whether only certain nodes can have children.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all nodes from the model, keeping only the default root node.
|
void |
insertNodeInto(MutableTreeNode newChild,
MutableTreeNode parent,
int index)
Overridden so that the
IlpTreeView object will be updated if a
node is inserted under the root node. |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChangedpublic IlpTreeModel()
IlpTreeModel(boolean)public IlpTreeModel(boolean asksAllowsChildren)
asksAllowsChildren - A boolean, false if any
node can have children, true if each node is asked to
see if it can have childrenDefaultTreeModel.asksAllowsChildrenpublic void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index)
IlpTreeView object will be updated if a
node is inserted under the root node.insertNodeInto in class DefaultTreeModelnewChild - The node to be added.parent - The node under which newChild is added.index - The index in the child array of parent where
newChild is to be inserted.DefaultTreeModel.insertNodeInto(javax.swing.tree.MutableTreeNode, javax.swing.tree.MutableTreeNode, int)public void clear()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.