com.sptci.rwt.webui.tree
Class LeafNode<S extends MetaData>
java.lang.Object
echopointng.tree.DefaultMutableTreeNode
com.sptci.epng.TreeNode<S>
com.sptci.rwt.webui.tree.AbstractNode<S>
com.sptci.rwt.webui.tree.LeafNode<S>
- All Implemented Interfaces:
- MutableTreeNode, TreeNode, Serializable
- Direct Known Subclasses:
- ColumnNode, ForeignKeyNode, IndexNode, PrimaryKeyNode, ProcedureNode, SequenceNode, TriggerNode
public class LeafNode<S extends MetaData>
- extends AbstractNode<S>
A TreeNode that represents a leaf in a tree.
© Copyright 2007 Sans Pareil Technologies, Inc.
- Version:
- $Id: LeafNode.java 4123 2008-05-25 21:49:01Z rakesh $
- Author:
- Rakesh Vidyadharan 2007-09-28
- See Also:
- Serialized Form
| Fields inherited from class com.sptci.epng.TreeNode |
initialised |
|
Constructor Summary |
LeafNode(S metadata)
Create a new tree node using the specified metadata object. |
|
Method Summary |
protected void |
createChildren()
Create the child nodes for this node. |
boolean |
isLeaf()
Determine whether this node holds children or not. |
| Methods inherited from class com.sptci.epng.TreeNode |
getUserObject, setUserObject |
| Methods inherited from class echopointng.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, depthFirstEnumeration, getActionCommand, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setActionCommand, setAllowsChildren, setParent, toString |
LeafNode
public LeafNode(S metadata)
- Create a new tree node using the specified metadata object. The
object represents a column in the database.
- Parameters:
metadata - The metadata object to use as the model for this node.
isLeaf
public boolean isLeaf()
- Determine whether this node holds children or not. Over-ridden
to always indicate that there are no children.
- Specified by:
isLeaf in interface TreeNode- Overrides:
isLeaf in class AbstractNode<S extends MetaData>
- Returns:
- Returns
true if the receiver is a leaf. Always
returns true.
createChildren
protected void createChildren()
- Create the child nodes for this node. Not applicable.
- Specified by:
createChildren in class AbstractNode<S extends MetaData>