Renders a Tree as a DHTML dropdown menu. Uses menu.js script to handle menu controls.
XML Configuration Template:
<TreeRenderer class="com.raritantechnologies.utils.tree.taglibrary.DropdownMenuTreeRenderer"
nameAttribute="[ attribute to get display name ]"
descriptionAttribute="[ attribute to get description (flyover hint) ]"
hrefAttribute="[ attribute to get link URL ]"
targetAttribute="[ attribute to get window link target ]"
hyperlinkTarget="[ fixed hyperlink target ]"
activeAttribute="[ TreeNode attribute with activeOn value of format 'sessionData|request:[param=value|NOT NULL]' ]"
useAction="href(default)|onClick"
zIndex="[ zindex of popup menus ]"
menuOffset="[ vertical offset for flyout menus ]"
hAlign="[ left(default)|center|right ]"
linkStyle="[ css style of hyperlinks ]"
childDivStyle="[ css style for child divs ]"
tabStyle="[ css style of top tabs ]"
activeTabStyle="[ css style of active tab ]"
activeTabName="[ fixed name for active tab ]"
activeTabParam="[ http request parameter that has active tab name ]"
blankTab="[ spacer for blank tabs ]"
linkClass="[ css class of menu items ]"
divIDPrefix="[ unique prefix - (needed for multiple instances of dropdowns) ]" >
<!-- ================================================================= -->
<!-- Optional javascript function to use to route tree node hyperlinks -->
<!-- If this tag is present, the renderer will generate A tags with -->
<!-- onClick="javascript:[functionName]( '[the href ]' );" -->
<!-- ================================================================= -->
<HyperlinkJavascript functionName="[ name of javascript function ]" >
</HyperlinkJavascript>
<LinkRenderer class="[ class of com.raritantechnologies.utils.tree.ITreeNodeHyperlinkRenderer ]" >
</LinkRenderer>
</TreeRenderer>
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.