public class TreePage extends BorderPage
Tree
control.Modifier and Type | Field and Description |
---|---|
protected org.apache.click.extras.tree.Tree |
tree |
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 |
---|
TreePage() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.click.extras.tree.Tree |
buildTree()
Build the tree and tree nodes and store the nodes in the session.
|
protected org.apache.click.extras.tree.TreeNode |
createNodes()
Create the tree nodes.
|
protected org.apache.click.extras.tree.Tree |
createTree()
Creates and return a new tree instance.
|
protected String |
getSessionKey()
Return the string under which the nodes are stored in the session.
|
protected org.apache.click.extras.tree.TreeNode |
loadNodesFromSession()
Retrieve the tree nodes from the session if available.
|
void |
onGet() |
void |
onInit() |
protected void |
storeNodesInSession(org.apache.click.extras.tree.TreeNode rootNode)
Store the tree nodes in the session
|
getTemplate, onDestroy
addControl, addModel, getContentType, getContext, getControls, getFormat, getForward, getHeadElements, getHeaders, getHtmlImports, getMessage, getMessage, getMessages, getModel, getPageImports, getPath, getRedirect, hasControls, hasHeaders, isIncludeControlHeadElements, isStateful, 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
protected org.apache.click.extras.tree.Tree tree
public void onInit()
onInit
in class BorderPage
Page.onInit()
public void onGet()
onGet
in class Page
Page.onGet()
protected org.apache.click.extras.tree.Tree createTree()
protected org.apache.click.extras.tree.Tree buildTree()
protected org.apache.click.extras.tree.TreeNode createNodes()
protected String getSessionKey()
protected void storeNodesInSession(org.apache.click.extras.tree.TreeNode rootNode)
protected org.apache.click.extras.tree.TreeNode loadNodesFromSession()