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, valueForPathChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
public 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.asksAllowsChildren
public 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 DefaultTreeModel
newChild
- 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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.