| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.ClosingUIBean com.opensymphony.webwork.components.TreeNode
TreeNode | public class TreeNode extends ClosingUIBean (Code) | |
Renders a tree node within a tree widget with AJAX support.
Either of the following combinations should be used depending on if the tree
is to be constrcted dynamically or statically.
Dynamically
- id - id of this tree node
- title - label to be displayed for this tree node
Statically
- rootNode - the parent node of which this tree is derived from
- nodeIdProperty - property to obtained this current tree node's id
- nodeTitleProperty - property to obtained this current tree node's title
- childCollectionProperty - property that returnds this current tree node's children
Examples
<-- statically -->
<ww:tree id="..." label="...">
<ww:treenode id="..." label="..." />
<ww:treenode id="..." label="...">
<ww:treenode id="..." label="..." />
<ww:treenode id="..." label="..." />
&;lt;/ww:treenode>
<ww:treenode id="..." label="..." />
</ww:tree>
<-- dynamically -->
<ww:tree
id="..."
rootNode="..."
nodeIdProperty="..."
nodeTitleProperty="..."
childCollectionProperty="..." />
Created : Dec 12, 2005 3:53:40 PM
author: Jason Carreira author: tm_jee |
getDefaultOpenTemplate | public String getDefaultOpenTemplate()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setLabel | public void setLabel(String label)(Code) | | Label expression used for rendering tree node label.
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|