hep.aida.web.taglib.jsp20
Class DisplayTreeTagImpl

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by hep.aida.web.taglib.jsp20.DisplayTreeTagImpl
All Implemented Interfaces:
DisplayTreeTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class DisplayTreeTagImpl
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements DisplayTreeTag

Author:
The AIDA Team @ SLAC

Constructor Summary
DisplayTreeTagImpl()
           
 
Method Summary
 void doTag()
           
 void setFolderHref(java.lang.String folderHref)
          Set the href link to which the folder nodes should point to.
 void setLeafHref(java.lang.String leafHref)
          Set the href link to which the leaf nodes should point to.
 void setRootLabel(java.lang.String rootLabel)
          Set the label to display for the root node, default is "/".
 void setRootVisible(boolean isRootVisible)
          Flag to control the visibility of the root node.
 void setShowFolderHrefForNodesWithLeavesOnly(boolean show)
          If set to true folderHref is added only to the folders with that have direct leaf nodes (not recursive!)
 void setShowItemCount(boolean showItemCount)
          If set to true next to each folder the number of children will be written.
 void setStoreName(java.lang.String storeName)
          Set name of the AIDA store to be displayed.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayTreeTagImpl

public DisplayTreeTagImpl()
Method Detail

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  java.io.IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setStoreName

public void setStoreName(java.lang.String storeName)
Description copied from interface: DisplayTreeTag
Set name of the AIDA store to be displayed.

Specified by:
setStoreName in interface DisplayTreeTag
Parameters:
storeName - The name of the AIDA store.

setLeafHref

public void setLeafHref(java.lang.String leafHref)
Description copied from interface: DisplayTreeTag
Set the href link to which the leaf nodes should point to. The wildcard "%p" will be replaced with the node's path while the wildcard "%l" will be replaced with the node's label.

Specified by:
setLeafHref in interface DisplayTreeTag
Parameters:
leafHref - The leaf href.

setFolderHref

public void setFolderHref(java.lang.String folderHref)
Description copied from interface: DisplayTreeTag
Set the href link to which the folder nodes should point to. The wildcard "%p" will be replaced with the node's path while the wildcard "%l" will be replaced with the node's label.

Specified by:
setFolderHref in interface DisplayTreeTag
Parameters:
folderHref - The folder href.

setRootVisible

public void setRootVisible(boolean isRootVisible)
Description copied from interface: DisplayTreeTag
Flag to control the visibility of the root node.

Specified by:
setRootVisible in interface DisplayTreeTag
Parameters:
isRootVisible - If true the root node appears in the tree.

setRootLabel

public void setRootLabel(java.lang.String rootLabel)
Description copied from interface: DisplayTreeTag
Set the label to display for the root node, default is "/".

Specified by:
setRootLabel in interface DisplayTreeTag
Parameters:
rootLabel - Label to display for the root node (it it is visible)

setShowItemCount

public void setShowItemCount(boolean showItemCount)
Description copied from interface: DisplayTreeTag
If set to true next to each folder the number of children will be written.

Specified by:
setShowItemCount in interface DisplayTreeTag
Parameters:
showItemCount - Set to true to view the number of children in a folder.

setShowFolderHrefForNodesWithLeavesOnly

public void setShowFolderHrefForNodesWithLeavesOnly(boolean show)
Description copied from interface: DisplayTreeTag
If set to true folderHref is added only to the folders with that have direct leaf nodes (not recursive!)

Specified by:
setShowFolderHrefForNodesWithLeavesOnly in interface DisplayTreeTag
Parameters:
show - Set to true


Copyright 2000-2007 FreeHEP. All Rights Reserved.