com.opensymphony.webwork.components
Class TreeNode
java.lang.Object
com.opensymphony.webwork.components.Component
com.opensymphony.webwork.components.UIBean
com.opensymphony.webwork.components.ClosingUIBean
com.opensymphony.webwork.components.TreeNode
public class TreeNode
- extends ClosingUIBean
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 , tm_jee
Fields inherited from class com.opensymphony.webwork.components.UIBean |
accesskey, cssClass, cssStyle, disabled, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateSuffix, theme, title, tooltip, tooltipConfig, value |
Methods inherited from class com.opensymphony.webwork.components.UIBean |
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, end, escape, evaluateExtraParams, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabelposition, setLabelPosition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTheme, setTitle, setTooltip, setTooltipConfig, setValue |
Methods inherited from class com.opensymphony.webwork.components.Component |
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, toString, usesBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeNode
public TreeNode(OgnlValueStack stack,
HttpServletRequest request,
HttpServletResponse response)
getDefaultOpenTemplate
public String getDefaultOpenTemplate()
- Specified by:
getDefaultOpenTemplate
in class ClosingUIBean
getDefaultTemplate
protected String getDefaultTemplate()
- Description copied from class:
UIBean
- A contract that requires each concrete UI Tag to specify which template should be used as a default. For
example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value
not begin with a '/' unless you intend to make the path absolute rather than relative to the
current theme.
- Specified by:
getDefaultTemplate
in class UIBean
- Returns:
- The name of the template to be used as the default.
setLabel
public void setLabel(String label)
- Label expression used for rendering tree node label.
- Overrides:
setLabel
in class UIBean