|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.click.extras.tree.Tree.AbstractJavascriptRenderer net.sf.click.extras.tree.Tree.SessionRenderer net.sf.click.extras.tree.CheckboxTree.CheckboxSessionJavascriptRenderer
Please note this class is only meant for developers of this control, not users.
Provides the rendering needed when aTree.JAVASCRIPT_SESSION_POLICY
is in effect.
Field Summary | |
protected CheckboxTree.BaseCheckboxJavascriptRenderer |
checkboxRenderer
A delegate for javascript rendering. |
Fields inherited from class net.sf.click.extras.tree.Tree.AbstractJavascriptRenderer |
expandId, iconId, nodeExpansionString |
Constructor Summary | |
protected |
CheckboxTree.CheckboxSessionJavascriptRenderer()
|
Method Summary | |
void |
init(TreeNode treeNode)
Called to initialize the renderer. |
void |
renderCheckbox(HtmlStringBuffer buffer)
Called when a tree node's checkbox is rendered. |
void |
renderSelect(HtmlStringBuffer buffer)
Called when a tree node's selected state is rendered. |
void |
renderValue(HtmlStringBuffer buffer)
Called when a tree node's value is rendered. |
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 |
Field Detail |
protected CheckboxTree.BaseCheckboxJavascriptRenderer checkboxRenderer
Constructor Detail |
protected CheckboxTree.CheckboxSessionJavascriptRenderer()
Method Detail |
public void renderValue(HtmlStringBuffer buffer)
CheckboxTree.CheckboxJavascriptRenderer
buffer.append("onclick=\"handleNodeSelection(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 renderValue
is called.
renderValue
in interface CheckboxTree.CheckboxJavascriptRenderer
buffer
- string buffer containing the markuprenderValue(HtmlStringBuffer)
public void renderSelect(HtmlStringBuffer buffer)
CheckboxTree.CheckboxJavascriptRenderer
buffer.appendAttribute("id", selectId);
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 renderSelect
is called.
renderSelect
in interface CheckboxTree.CheckboxJavascriptRenderer
buffer
- string buffer containing the markuprenderSelect(HtmlStringBuffer)
public void renderCheckbox(HtmlStringBuffer buffer)
CheckboxTree.CheckboxJavascriptRenderer
buffer.append(" onclick=\"onCheckboxClick(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 renderValue
is called.
renderCheckbox
in interface CheckboxTree.CheckboxJavascriptRenderer
buffer
- string buffer containing the markuprenderCheckbox(HtmlStringBuffer)
public void init(TreeNode treeNode)
Tree.JavascriptRenderer
init
in interface Tree.JavascriptRenderer
init
in class Tree.SessionRenderer
treeNode
- the current node renderedinit(TreeNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |