public abstract class AbstractTTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
DefaultMutableTreeNode
and extends a lot of features to meet TWaver Tree component needs.Constructor and Description |
---|
AbstractTTreeNode(TTree tree)
Create tree node by given TWaver tree component.
|
Modifier and Type | Method and Description |
---|---|
void |
explore()
Call this method to explore the tree node.
|
boolean |
getAllowsChildren()
Override this method always return true to allow children.
|
Element |
getElement()
Gets the connected element.
|
abstract java.util.List |
getElementChildren()
Get children elements for this tree node.
|
boolean |
isExplored()
Check whether this tree node has been explored.
|
boolean |
isLeaf()
Checks whether this element node is leaf.
|
protected void |
reloadChildren()
Call this method to reload all children tree nodes.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
protected TTree tree
public AbstractTTreeNode(TTree tree)
tree
- TTree the connected TWaver tree componentpublic boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isExplored()
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public void explore()
protected void reloadChildren()
public abstract java.util.List getElementChildren()
Element
for all children elements.public Element getElement()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.