public class CheckboxTreePage extends BorderPage implements org.apache.click.extras.tree.TreeListener
CheckboxTree
control.Modifier and Type | Class and Description |
---|---|
static class |
CheckboxTreePage.CheckboxTreeOptions
Form options holder.
|
Modifier and Type | Field and Description |
---|---|
static String |
TREE_NODES_SESSION_KEY |
controls, format, forward, headElements, headers, includeControlHeadElements, messages, model, PAGE_ACTION, PAGE_MESSAGES, pageImports, path, redirect, stateful, template
Constructor and Description |
---|
CheckboxTreePage() |
Modifier and Type | Method and Description |
---|---|
void |
buildOptionsUI()
Builds the user interface for users to change the tree options interactively.
|
org.apache.click.extras.tree.CheckboxTree |
buildTree()
Build the tree model and stores it in the session.
|
org.apache.click.extras.tree.CheckboxTree |
createTree()
Creates and return a new tree instance.
|
void |
nodeCollapsed(org.apache.click.extras.tree.Tree tree,
org.apache.click.extras.tree.TreeNode node,
Context context,
boolean oldValue)
This method, which implements TreeListener, is called when a node is collapsed
|
void |
nodeDeselected(org.apache.click.extras.tree.Tree tree,
org.apache.click.extras.tree.TreeNode node,
Context context,
boolean oldValue)
This method, which implements TreeListener, is called when a node is deselected
|
void |
nodeExpanded(org.apache.click.extras.tree.Tree tree,
org.apache.click.extras.tree.TreeNode node,
Context context,
boolean oldValue)
This method, which implements TreeListener, is called when a node is expanded
|
void |
nodeSelected(org.apache.click.extras.tree.Tree tree,
org.apache.click.extras.tree.TreeNode node,
Context context,
boolean oldValue)
This method, which implements TreeListener, is called when a node is selected
|
boolean |
onApplyOptionsClick()
Called when user submits the options form.
|
void |
onInit() |
getTemplate, onDestroy
addControl, addModel, getContentType, getContext, getControls, getFormat, getForward, getHeadElements, getHeaders, getHtmlImports, getMessage, getMessage, getMessages, getModel, getPageImports, getPath, getRedirect, hasControls, hasHeaders, isIncludeControlHeadElements, isStateful, onGet, onPost, onRender, onSecurityCheck, removeControl, setFormat, setForward, setForward, setForward, setHeader, setHeaders, setIncludeControlHeadElements, setPageImports, setPath, setRedirect, setRedirect, setRedirect, setRedirect, setStateful, setTemplate
public static final String TREE_NODES_SESSION_KEY
public void onInit()
onInit
in class BorderPage
Page.onInit()
public org.apache.click.extras.tree.CheckboxTree createTree()
public org.apache.click.extras.tree.CheckboxTree buildTree()
public void nodeSelected(org.apache.click.extras.tree.Tree tree, org.apache.click.extras.tree.TreeNode node, Context context, boolean oldValue)
nodeSelected
in interface org.apache.click.extras.tree.TreeListener
public void nodeDeselected(org.apache.click.extras.tree.Tree tree, org.apache.click.extras.tree.TreeNode node, Context context, boolean oldValue)
nodeDeselected
in interface org.apache.click.extras.tree.TreeListener
public void nodeExpanded(org.apache.click.extras.tree.Tree tree, org.apache.click.extras.tree.TreeNode node, Context context, boolean oldValue)
nodeExpanded
in interface org.apache.click.extras.tree.TreeListener
public void nodeCollapsed(org.apache.click.extras.tree.Tree tree, org.apache.click.extras.tree.TreeNode node, Context context, boolean oldValue)
nodeCollapsed
in interface org.apache.click.extras.tree.TreeListener
public boolean onApplyOptionsClick()
public void buildOptionsUI()