org.apache.struts2.components
Class Tree
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.ClosingUIBean
org.apache.struts2.components.Tree
public class Tree
- extends ClosingUIBean
Renders a tree widget with AJAX support.
The id attribute is normally specified, such that it could be looked up using
javascript if necessary.
Examples
<-- statically -->
<s:tree id="..." label="...">
<s:treenode id="..." label="..." />
<s:treenode id="..." label="...">
<s:treenode id="..." label="..." />
<s:treenode id="..." label="..." />
&;lt;/s:treenode>
<s:treenode id="..." label="..." />
</s:tree>
<-- dynamically -->
<s:tree
id="..."
rootNode="..."
nodeIdProperty="..."
nodeTitleProperty="..."
childCollectionProperty="..." />
Fields inherited from class org.apache.struts2.components.UIBean |
accesskey, cssClass, cssStyle, defaultTemplateDir, defaultUITheme, disabled, key, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, value |
Methods inherited from class org.apache.struts2.components.UIBean |
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setKey, setLabel, setLabelposition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setValue |
Methods inherited from class org.apache.struts2.components.Component |
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, toString, usesBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPLATE
private static final String TEMPLATE
- See Also:
- Constant Field Values
OPEN_TEMPLATE
private static final String OPEN_TEMPLATE
- See Also:
- Constant Field Values
toggle
private String toggle
treeSelectedTopic
private String treeSelectedTopic
treeExpandedTopic
private String treeExpandedTopic
treeCollapsedTopic
private String treeCollapsedTopic
rootNodeAttr
protected String rootNodeAttr
childCollectionProperty
protected String childCollectionProperty
nodeTitleProperty
protected String nodeTitleProperty
nodeIdProperty
protected String nodeIdProperty
showRootGrid
private String showRootGrid
showGrid
private String showGrid
blankIconSrc
private String blankIconSrc
gridIconSrcL
private String gridIconSrcL
gridIconSrcV
private String gridIconSrcV
gridIconSrcP
private String gridIconSrcP
gridIconSrcC
private String gridIconSrcC
gridIconSrcX
private String gridIconSrcX
gridIconSrcY
private String gridIconSrcY
expandIconSrcPlus
private String expandIconSrcPlus
expandIconSrcMinus
private String expandIconSrcMinus
iconWidth
private String iconWidth
iconHeight
private String iconHeight
toggleDuration
private String toggleDuration
templateCssPath
private String templateCssPath
Tree
public Tree(ValueStack stack,
HttpServletRequest request,
HttpServletResponse response)
start
public boolean start(Writer writer)
- Description copied from class:
Component
- Callback for the start tag of this component.
Should the body be evaluated?
- Overrides:
start
in class ClosingUIBean
- Parameters:
writer
- the output writer.
- Returns:
- true if the body should be evaluated
evaluateExtraParams
protected void evaluateExtraParams()
- Overrides:
evaluateExtraParams
in class UIBean
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.
getToggle
public String getToggle()
setToggle
public void setToggle(String toggle)
getTreeSelectedTopic
public String getTreeSelectedTopic()
setTreeSelectedTopic
public void setTreeSelectedTopic(String treeSelectedTopic)
getTreeExpandedTopic
public String getTreeExpandedTopic()
setTreeExpandedTopic
public void setTreeExpandedTopic(String treeExpandedTopic)
getTreeCollapsedTopic
public String getTreeCollapsedTopic()
setTreeCollapsedTopic
public void setTreeCollapsedTopic(String treeCollapsedTopic)
getRootNode
public String getRootNode()
setRootNode
public void setRootNode(String rootNode)
getChildCollectionProperty
public String getChildCollectionProperty()
setChildCollectionProperty
public void setChildCollectionProperty(String childCollectionProperty)
getNodeTitleProperty
public String getNodeTitleProperty()
setNodeTitleProperty
public void setNodeTitleProperty(String nodeTitleProperty)
getNodeIdProperty
public String getNodeIdProperty()
setNodeIdProperty
public void setNodeIdProperty(String nodeIdProperty)
setShowRootGrid
public void setShowRootGrid(String showRootGrid)
getShowRootGrid
public String getShowRootGrid()
getBlankIconSrc
public String getBlankIconSrc()
setBlankIconSrc
public void setBlankIconSrc(String blankIconSrc)
getExpandIconSrcMinus
public String getExpandIconSrcMinus()
setExpandIconSrcMinus
public void setExpandIconSrcMinus(String expandIconSrcMinus)
getExpandIconSrcPlus
public String getExpandIconSrcPlus()
setExpandIconSrcPlus
public void setExpandIconSrcPlus(String expandIconSrcPlus)
getGridIconSrcC
public String getGridIconSrcC()
setGridIconSrcC
public void setGridIconSrcC(String gridIconSrcC)
getGridIconSrcL
public String getGridIconSrcL()
setGridIconSrcL
public void setGridIconSrcL(String gridIconSrcL)
getGridIconSrcP
public String getGridIconSrcP()
setGridIconSrcP
public void setGridIconSrcP(String gridIconSrcP)
getGridIconSrcV
public String getGridIconSrcV()
setGridIconSrcV
public void setGridIconSrcV(String gridIconSrcV)
getGridIconSrcX
public String getGridIconSrcX()
setGridIconSrcX
public void setGridIconSrcX(String gridIconSrcX)
getGridIconSrcY
public String getGridIconSrcY()
setGridIconSrcY
public void setGridIconSrcY(String gridIconSrcY)
getIconHeight
public String getIconHeight()
setIconHeight
public void setIconHeight(String iconHeight)
getIconWidth
public String getIconWidth()
setIconWidth
public void setIconWidth(String iconWidth)
getTemplateCssPath
public String getTemplateCssPath()
setTemplateCssPath
public void setTemplateCssPath(String templateCssPath)
getToggleDuration
public String getToggleDuration()
setToggleDuration
public void setToggleDuration(String toggleDuration)
getShowGrid
public String getShowGrid()
setShowGrid
public void setShowGrid(String showGrid)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.