public class DTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel
Modifier and Type | Field and Description |
---|---|
(package private) Tree |
tree |
(package private) java.util.ArrayList<javax.swing.event.TreeModelListener> |
treeModelListeners |
Constructor and Description |
---|
DTreeModel(Tree t) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l) |
protected void |
fireTreeStructureChanged(java.lang.Object oldRoot) |
java.lang.Object |
getChild(java.lang.Object parent,
int index) |
int |
getChildCount(java.lang.Object parent) |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child) |
java.lang.Object |
getRoot() |
Tree |
getTree() |
boolean |
isLeaf(java.lang.Object node) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l) |
void |
treeModified() |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue) |
Tree tree
java.util.ArrayList<javax.swing.event.TreeModelListener> treeModelListeners
public DTreeModel(Tree t)
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public Tree getTree()
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
protected void fireTreeStructureChanged(java.lang.Object oldRoot)
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public void treeModified()
Copyright © 2013. All Rights Reserved.