public abstract class TreeBuilder
extends java.lang.Object
implements javax.swing.tree.TreeModel
Modifier | Constructor and Description |
---|---|
protected |
TreeBuilder(java.lang.Object userObject) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l) |
abstract void |
buildChildren(TreeBuilderNode node) |
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) |
protected javax.swing.tree.TreeNode[] |
getPathToRoot(javax.swing.tree.TreeNode aNode,
int depth) |
java.lang.Object |
getRoot() |
java.lang.Object |
getUserObject() |
abstract boolean |
isExpandable(TreeBuilderNode node) |
boolean |
isLeaf(java.lang.Object node) |
void |
nodeChanged(javax.swing.tree.TreeNode node) |
void |
nodeStructureChanged(javax.swing.tree.TreeNode node) |
void |
removeNodeFromParent(TreeBuilderNode node) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l) |
void |
setRoot(TreeBuilderNode root) |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue) |
public java.lang.Object getUserObject()
public abstract void buildChildren(TreeBuilderNode node)
public abstract boolean isExpandable(TreeBuilderNode node)
public void setRoot(TreeBuilderNode root)
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
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 java.lang.Object getChild(java.lang.Object parent, int index)
getChild
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 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public void nodeChanged(javax.swing.tree.TreeNode node)
public void nodeStructureChanged(javax.swing.tree.TreeNode node)
protected javax.swing.tree.TreeNode[] getPathToRoot(javax.swing.tree.TreeNode aNode, int depth)
public void removeNodeFromParent(TreeBuilderNode node)