org.freehep.webutil.tree
Class DefaultTreeNode

java.lang.Object
  extended by 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

Field Summary
protected  String href
           
protected  String target
           
 
Constructor Summary
DefaultTreeNode(String name)
           
DefaultTreeNode(String name, DefaultTreeNode parent)
           
 
Method Summary
 void add(TreeNode child)
           
 void addNodeAtPath(TreeNode node, String path)
           
 List children()
           
 void createNodeAtPath(String path)
           
 DefaultTreeNode findNode(String path, boolean createMissing)
           
 String getHref()
           
 Icon getIcon()
           
 String getLabel()
           
 String getPath()
           
 DefaultTreeNode getRoot()
           
 String getTarget()
           
 String getTitle()
           
 boolean isExpanded()
           
 boolean isLeaf()
           
 DefaultTreeNode parent()
           
 void setHref(String href)
           
 void setIsExpanded(boolean isExpanded)
           
 void setLabel(String name)
           
 void setTarget(String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

href

protected String href

target

protected String target
Constructor Detail

DefaultTreeNode

public DefaultTreeNode(String name)

DefaultTreeNode

public DefaultTreeNode(String name,
                       DefaultTreeNode parent)
Method Detail

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.