|
||||||||||
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.CheckboxTree.BaseCheckboxJavascriptRenderer
Please note this class is only meant for developers of this control, not users.
Provides a base implementation of a CheckboxJavascriptRenderer that subclasses can extend from.
Field Summary | |
protected String |
checkboxId
holds the id of the checkbox html element. |
protected String |
checkboxOnClickString
holds the javascript call when user clicks on checkbox. |
protected String |
nodeSelectionString
holds the javascript call to select the node. |
protected String |
selectId
holds the id of the select html element. |
Fields inherited from class net.sf.click.extras.tree.Tree.AbstractJavascriptRenderer |
expandId, iconId, nodeExpansionString |
Constructor Summary | |
protected |
CheckboxTree.BaseCheckboxJavascriptRenderer()
|
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 String selectId
protected String nodeSelectionString
protected String checkboxId
protected String checkboxOnClickString
Constructor Detail |
protected CheckboxTree.BaseCheckboxJavascriptRenderer()
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.AbstractJavascriptRenderer
treeNode
- the current node renderedinit(TreeNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |