|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Please note this class is not meant for public use.
Provides the contract for pluggable javascript renderers for the Tree.
Method Summary | |
void |
init(TreeNode node)
Called to initialize the renderer. |
void |
renderExpandAndCollapseAction(HtmlStringBuffer buffer)
Called when the expand and collapse action is rendered. |
void |
renderIcon(HtmlStringBuffer buffer)
Called when the tree icon is rendered. |
void |
renderTreeNodeStart(HtmlStringBuffer buffer)
Called before a tree node is rendered. |
Method Detail |
public void init(TreeNode node)
node
- the current node renderedpublic void renderTreeNodeStart(HtmlStringBuffer buffer)
buffer.appendAttribute("id",expandId);
The code above adds a id attribute to the element, to enable
the javascript code to lookup the html element by its id.
The above attribute is appended to whichever element the
tree is currently rendering at the time renderTreeNodeStart
is called.
buffer
- string buffer containing the markuppublic void renderExpandAndCollapseAction(HtmlStringBuffer buffer)
buffer.append("onclick=\"handleNodeExpansion(this,event)\"");
The code above adds a javascript function call to the element.
The code above is appended to whichever element the
tree is currently rendering at the time renderTreeNodeStart
is called.
buffer
- string buffer containing the markuppublic void renderIcon(HtmlStringBuffer buffer)
buffer.appendAttribute("id",iconId);
The code above adds a id attribute to the element, to enable
the javascript code to lookup the html element by its id.
The above attribute is appended to whichever element the
tree is currently rendering at the time renderTreeNodeStart
is called.
buffer
- string buffer containing the markup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |