org.freehep.webutil.tree
Class DefaultTreeNode
java.lang.Object
org.freehep.webutil.tree.DefaultTreeNode
- All Implemented Interfaces:
- Serializable, TreeNode
public class DefaultTreeNode
- extends Object
- implements TreeNode, Serializable
- Author:
- The FreeHEP team @ SLAC
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
href
protected String href
target
protected String target
DefaultTreeNode
public DefaultTreeNode(String name)
DefaultTreeNode
public DefaultTreeNode(String name,
DefaultTreeNode parent)
add
public void add(TreeNode child)
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface TreeNode
getTarget
public String getTarget()
- Specified by:
getTarget
in interface TreeNode
setTarget
public void setTarget(String target)
getTitle
public String getTitle()
- Specified by:
getTitle
in interface TreeNode
isExpanded
public boolean isExpanded()
- Specified by:
isExpanded
in interface TreeNode
setIsExpanded
public void setIsExpanded(boolean isExpanded)
getLabel
public String getLabel()
- Specified by:
getLabel
in interface TreeNode
setLabel
public void setLabel(String name)
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interface TreeNode
getHref
public String getHref()
- Specified by:
getHref
in interface TreeNode
setHref
public void setHref(String href)
children
public List children()
- Specified by:
children
in interface TreeNode
parent
public DefaultTreeNode parent()
getPath
public String getPath()
getRoot
public DefaultTreeNode getRoot()
findNode
public DefaultTreeNode findNode(String path,
boolean createMissing)
addNodeAtPath
public void addNodeAtPath(TreeNode node,
String path)
createNodeAtPath
public void createNodeAtPath(String path)
Copyright © 2000-2009 FreeHEP. All Rights Reserved.