net.sf.click.extras.tree
Class Tree.CookieRenderer

java.lang.Object
  extended bynet.sf.click.extras.tree.Tree.AbstractJavascriptRenderer
      extended bynet.sf.click.extras.tree.Tree.CookieRenderer
All Implemented Interfaces:
Tree.JavascriptRenderer
Direct Known Subclasses:
CheckboxTree.CheckboxCookieJavascriptRenderer
Enclosing class:
Tree

protected class Tree.CookieRenderer
extends Tree.AbstractJavascriptRenderer

Please note this class is only meant for developers of this control, not users.

Provides the rendering needed when a Tree.JAVASCRIPT_COOKIE_POLICY is in effect.


Field Summary
 
Fields inherited from class net.sf.click.extras.tree.Tree.AbstractJavascriptRenderer
expandId, iconId, nodeExpansionString
 
Constructor Summary
Tree.CookieRenderer(String expandedCookieName, String collapsedCookieName)
          Default constructor.
 
Method Summary
 void init(TreeNode treeNode)
          Called to initialize the renderer.
 
Methods inherited from class net.sf.click.extras.tree.Tree.AbstractJavascriptRenderer
buildString, renderExpandAndCollapseAction, renderIcon, renderTreeNodeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tree.CookieRenderer

public Tree.CookieRenderer(String expandedCookieName,
                           String collapsedCookieName)
Default constructor.

Parameters:
expandedCookieName - name of the cookie holding expanded id's
collapsedCookieName - name of the cookie holding collapsed id's
Method Detail

init

public void init(TreeNode treeNode)
Description copied from interface: Tree.JavascriptRenderer
Called to initialize the renderer.

Specified by:
init in interface Tree.JavascriptRenderer
Overrides:
init in class Tree.AbstractJavascriptRenderer
Parameters:
treeNode - the current node rendered
See Also:
init(TreeNode), init(TreeNode)