org.freehep.webutil.tree
Class Tree

java.lang.Object
  extended by org.freehep.webutil.tree.Tree

public class Tree
extends Object

A class for rendering Trees as HTML

Author:
The FreeHEP team @ SLAC

Field Summary
static String noHref
           
 
Constructor Summary
Tree(IconSet icons)
           
Tree(String path)
          Creates a Tree renderer using the standard IconSet and with the icons located at the given path.
 
Method Summary
 String getFolderHref()
           
 int getFolderHrefLimit()
           
 String getLeafHref()
           
 String getOnclick()
           
 boolean getShowFolderHrefForNodesWithLeavesOnly()
           
 String getTarget()
           
 boolean getUseCookies()
           
 boolean isRootVisible()
           
 boolean isShowFolderHrefForNodesWithLeavesOnly()
           
 void printScript(javax.servlet.jsp.JspWriter out)
           
 void printStyle(javax.servlet.jsp.JspWriter out)
           
 void printTree(javax.servlet.jsp.JspWriter out, TreeNode root, String title)
           
 void setFolderHref(String href)
           
 void setFolderHrefLimit(int limit)
           
 void setLeafHref(String href)
           
 void setOnclick(String onclick)
           
 void setRootVisible(boolean visible)
           
 void setShowFolderHrefForNodesWithLeavesOnly(boolean visible)
           
 void setShowItemCount(boolean visible)
           
 void setTarget(String target)
           
 void setUseCookies(boolean useCookies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noHref

public static String noHref
Constructor Detail

Tree

public Tree(String path)
Creates a Tree renderer using the standard IconSet and with the icons located at the given path.


Tree

public Tree(IconSet icons)
Method Detail

isShowFolderHrefForNodesWithLeavesOnly

public boolean isShowFolderHrefForNodesWithLeavesOnly()

getShowFolderHrefForNodesWithLeavesOnly

public boolean getShowFolderHrefForNodesWithLeavesOnly()

setShowFolderHrefForNodesWithLeavesOnly

public void setShowFolderHrefForNodesWithLeavesOnly(boolean visible)

isRootVisible

public boolean isRootVisible()

setRootVisible

public void setRootVisible(boolean visible)

setShowItemCount

public void setShowItemCount(boolean visible)

setLeafHref

public void setLeafHref(String href)

getLeafHref

public String getLeafHref()

setFolderHrefLimit

public void setFolderHrefLimit(int limit)

getFolderHrefLimit

public int getFolderHrefLimit()

setFolderHref

public void setFolderHref(String href)

getFolderHref

public String getFolderHref()

setTarget

public void setTarget(String target)

getTarget

public String getTarget()

setOnclick

public void setOnclick(String onclick)

getOnclick

public String getOnclick()

setUseCookies

public void setUseCookies(boolean useCookies)

getUseCookies

public boolean getUseCookies()

printTree

public void printTree(javax.servlet.jsp.JspWriter out,
                      TreeNode root,
                      String title)
               throws IOException
Throws:
IOException

printStyle

public void printStyle(javax.servlet.jsp.JspWriter out)
                throws IOException
Throws:
IOException

printScript

public void printScript(javax.servlet.jsp.JspWriter out)
                 throws IOException
Throws:
IOException


Copyright © 2000-2009 FreeHEP. All Rights Reserved.