|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.extras.tree.Tree.AbstractJavascriptRenderer org.apache.click.extras.tree.Tree.CookieRenderer org.apache.click.extras.tree.CheckboxTree.CheckboxCookieJavascriptRenderer
protected class CheckboxTree.CheckboxCookieJavascriptRenderer
Please note this class is only meant for developers of this control, not users.
Provides the rendering needed when aTree.JAVASCRIPT_COOKIE_POLICY
is in effect.
Field Summary | |
---|---|
protected CheckboxTree.BaseCheckboxJavascriptRenderer |
checkboxRenderer
A delegate for javascript rendering. |
Fields inherited from class org.apache.click.extras.tree.Tree.AbstractJavascriptRenderer |
---|
expandId, iconId, nodeExpansionString |
Constructor Summary | |
---|---|
protected |
CheckboxTree.CheckboxCookieJavascriptRenderer(String expandedCookieName,
String collapsedCookieName)
Default constructor. |
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 org.apache.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.CheckboxCookieJavascriptRenderer(String expandedCookieName, String collapsedCookieName)
expandedCookieName
- name of the cookie holding expanded id'scollapsedCookieName
- name of the cookie holding collapsed id'sMethod 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.CookieRenderer
treeNode
- the current node renderedinit(TreeNode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |