BranchTreeNode implements the Swing TreeNode interface to bind
dom4j XML Branch nodes (i.e. Document and Element nodes) to a Swing
TreeModel.
| Modifier and Type | Field and Description |
|---|---|
| protected List | children
Stores the child tree nodes |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | children()
Overrides org. Implements javax. Enumeration.
|
| protected List | |
| protected TreeNode | Returns: DOCUMENT ME!DOCUMENT ME! xmlNode)Factory method to create child tree nodes for a given XML node type |
| public boolean | getAllowsChildren()
Overrides org. Implements javax. |
| public TreeNode | getChildAt(int
index of child childIndex)Overrides org. Implements javax. TreeNode at index
childIndex.
|
| public int | getChildCount()
Overrides org. Implements javax. TreeNodes the receiver
contains.
|
| protected List | |
| public int | getIndex(TreeNode
node to be loked for node)Overrides org. Implements javax. node in the receivers children.
|
| protected Branch | |
| public boolean | isLeaf()
Overrides org. Implements javax. |
| public String | toString()
Overrides org. |
| children | back to summary |
|---|---|
| protected List<TreeNode> children Stores the child tree nodes | |
| BranchTreeNode | back to summary |
|---|---|
| public BranchTreeNode() | |
| BranchTreeNode | back to summary |
|---|---|
| public BranchTreeNode(Branch xmlNode) | |
| BranchTreeNode | back to summary |
|---|---|
| public BranchTreeNode(TreeNode parent, Branch xmlNode) | |
| children | back to summary |
|---|---|
| public Enumeration Overrides org. Implements javax. Doc from javax. Returns the children of the receiver as an
| |
| createChildList | back to summary |
|---|---|
| protected List Factory method to create List of children TreeNodes | |
| createChildTreeNode | back to summary |
|---|---|
| protected TreeNode createChildTreeNode(Node xmlNode) Factory method to create child tree nodes for a given XML node type | |
| getAllowsChildren | back to summary |
|---|---|
| public boolean getAllowsChildren() Overrides org. Implements javax. Doc from javax. Returns true if the receiver allows children.
| |
| getChildAt | back to summary |
|---|---|
| public TreeNode getChildAt(int childIndex) Overrides org. Implements javax. Doc from javax. Returns the child
| |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() Overrides org. Implements javax. Doc from javax. Returns the number of children
| |
| getChildList | back to summary |
|---|---|
| protected List Uses Lazy Initialization pattern to create a List of children | |
| getIndex | back to summary |
|---|---|
| public int getIndex(TreeNode node) Overrides org. Implements javax. Doc from javax. Returns the index of
| |
| getXmlBranch | back to summary |
|---|---|
| protected Branch getXmlBranch() | |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf() Overrides org. Implements javax. Doc from javax. Returns true if the receiver is a leaf.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |