public class ClassAndEntityTreeModel extends EntityTreeModel
EntityTreeModel.TreeUpdateListener_root| Constructor and Description |
|---|
ClassAndEntityTreeModel(NamedObj root)
Create a new tree model with the specified root.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
_classes(java.lang.Object object)
Return the list of classes, or an empty list if there are none.
|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Get the child of the given parent at the given index.
|
int |
getChildCount(java.lang.Object parent)
Return the number of children of the given parent.
|
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Return the index of the given child within the given parent.
|
boolean |
isLeaf(java.lang.Object object)
Return true if the object is a leaf node.
|
addTreeModelListener, getRoot, removeTreeModelListener, setRoot, valueForPathChangedpublic ClassAndEntityTreeModel(NamedObj root)
root - The root of the tree.public java.lang.Object getChild(java.lang.Object parent, int index)
getChild in interface javax.swing.tree.TreeModelgetChild in class EntityTreeModelparent - A node in the tree.index - The index of the desired child.public int getChildCount(java.lang.Object parent)
getChildCount in interface javax.swing.tree.TreeModelgetChildCount in class EntityTreeModelparent - A parent node.public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild in interface javax.swing.tree.TreeModelgetIndexOfChild in class EntityTreeModelparent - The parent.child - The child.public boolean isLeaf(java.lang.Object object)
isLeaf in interface javax.swing.tree.TreeModelisLeaf in class EntityTreeModelobject - The object.protected java.util.List _classes(java.lang.Object object)
object - The object.