hep.aida.web.taglib
Class DisplayTreeTagSupport

java.lang.Object
  extended by hep.aida.web.taglib.DisplayTreeTagSupport
All Implemented Interfaces:
DisplayTreeTag

public class DisplayTreeTagSupport
extends java.lang.Object
implements DisplayTreeTag

The implementation class for all TreeDisplayTag classes.

Author:
The AIDA Team @ SLAC

Constructor Summary
DisplayTreeTagSupport()
           
 
Method Summary
 void doEndTag(javax.servlet.jsp.PageContext pageContext)
           
 void doStartTag()
           
 java.lang.String getFolderHref()
           
 java.lang.String getLeafHref()
           
 java.lang.String getRootLabel()
           
 boolean getRootVisible()
           
 boolean getShowFolderHrefForNodesWithLeavesOnly()
           
 boolean getShowItemCount()
           
 java.lang.String getStoreName()
           
 boolean isShowFolderHrefForNodesWithLeavesOnly()
           
 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 rootVisible)
          Flag to control the visibility of the root node.
 void setShowFolderHrefForNodesWithLeavesOnly(boolean visible)
          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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayTreeTagSupport

public DisplayTreeTagSupport()
Method Detail

doStartTag

public void doStartTag()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doEndTag

public void doEndTag(javax.servlet.jsp.PageContext pageContext)
              throws javax.servlet.jsp.JspException,
                     java.io.IOException
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.

getStoreName

public java.lang.String getStoreName()

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.

getLeafHref

public java.lang.String getLeafHref()

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.

getFolderHref

public java.lang.String getFolderHref()

setRootVisible

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

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

getRootVisible

public boolean getRootVisible()

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)

getRootLabel

public java.lang.String getRootLabel()

isShowFolderHrefForNodesWithLeavesOnly

public boolean isShowFolderHrefForNodesWithLeavesOnly()

getShowFolderHrefForNodesWithLeavesOnly

public boolean getShowFolderHrefForNodesWithLeavesOnly()

setShowFolderHrefForNodesWithLeavesOnly

public void setShowFolderHrefForNodesWithLeavesOnly(boolean visible)
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:
visible - Set to true

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.

getShowItemCount

public boolean getShowItemCount()


Copyright 2000-2007 FreeHEP. All Rights Reserved.