|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.components.Component
com.opensymphony.webwork.components.UIBean
com.opensymphony.webwork.components.ClosingUIBean
com.opensymphony.webwork.components.Tree
public class Tree
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 --> <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 : Oct 27, 2005 3:56:23 PM
Field Summary | |
---|---|
protected String |
childCollectionProperty
|
protected String |
nodeIdProperty
|
protected String |
nodeTitleProperty
|
protected String |
rootNodeAttr
|
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 |
Fields inherited from class com.opensymphony.webwork.components.Component |
---|
COMPONENT_STACK, id, parameters, stack |
Constructor Summary | |
---|---|
Tree(OgnlValueStack stack,
HttpServletRequest request,
HttpServletResponse response)
|
Method Summary | |
---|---|
protected void |
evaluateExtraParams()
|
String |
getBlankIconSrc()
|
String |
getChildCollectionProperty()
|
String |
getDefaultOpenTemplate()
|
protected String |
getDefaultTemplate()
A contract that requires each concrete UI Tag to specify which template should be used as a default. |
String |
getExpandIconSrcMinus()
|
String |
getExpandIconSrcPlus()
|
String |
getGridIconSrcC()
|
String |
getGridIconSrcL()
|
String |
getGridIconSrcP()
|
String |
getGridIconSrcV()
|
String |
getGridIconSrcX()
|
String |
getGridIconSrcY()
|
String |
getIconHeight()
|
String |
getIconWidth()
|
String |
getNodeIdProperty()
|
String |
getNodeTitleProperty()
|
String |
getRootNode()
|
String |
getShowGrid()
|
String |
getShowRootGrid()
|
String |
getTemplateCssPath()
|
String |
getToggle()
|
String |
getToggleDuration()
|
String |
getTreeCollapsedTopic()
|
String |
getTreeExpandedTopic()
|
String |
getTreeSelectedTopic()
|
void |
setBlankIconSrc(String blankIconSrc)
Blank icon image source. |
void |
setChildCollectionProperty(String childCollectionProperty)
The childCollectionProperty property. |
void |
setExpandIconSrcMinus(String expandIconSrcMinus)
Expand icon (-) image source. |
void |
setExpandIconSrcPlus(String expandIconSrcPlus)
Expand Icon (+) image source. |
void |
setGridIconSrcC(String gridIconSrcC)
Image source for under child item child icons. |
void |
setGridIconSrcL(String gridIconSrcL)
Image source for last child grid. |
void |
setGridIconSrcP(String gridIconSrcP)
Image source for under parent item child icons. |
void |
setGridIconSrcV(String gridIconSrcV)
Image source for vertical line. |
void |
setGridIconSrcX(String gridIconSrcX)
Image source for grid for sole root item. |
void |
setGridIconSrcY(String gridIconSrcY)
Image source for grid for last root item. |
void |
setIconHeight(String iconHeight)
Icon height (default 18 pixels). |
void |
setIconWidth(String iconWidth)
Icon width (default 19 pixels). |
void |
setNodeIdProperty(String nodeIdProperty)
The nodeIdProperty property. |
void |
setNodeTitleProperty(String nodeTitleProperty)
The nodeTitleProperty property. |
void |
setRootNode(String rootNode)
The rootNode property. |
void |
setShowGrid(String showGrid)
Show grid (default true). |
void |
setShowRootGrid(String showRootGrid)
The showRootGrid property (default true). |
void |
setTemplateCssPath(String templateCssPath)
Template css path (default {contextPath}/struts/tree.css. |
void |
setToggle(String toggle)
The toggle property. |
void |
setToggleDuration(String toggleDuration)
Toggle duration (default 150 ms) |
void |
setTreeCollapsedTopic(String treeCollapsedTopic)
The treeCollapsedTopic property. |
void |
setTreeExpandedTopic(String treeExpandedTopic)
The treeExpandedTopic property. |
void |
setTreeSelectedTopic(String treeSelectedTopic)
The treeSelectedTopic property. |
boolean |
start(Writer writer)
Callback for the start tag of this component. |
Methods inherited from class com.opensymphony.webwork.components.ClosingUIBean |
---|
setOpenTemplate |
Methods inherited from class com.opensymphony.webwork.components.UIBean |
---|
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, end, escape, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabel, 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 |
Field Detail |
---|
protected String rootNodeAttr
protected String childCollectionProperty
protected String nodeTitleProperty
protected String nodeIdProperty
Constructor Detail |
---|
public Tree(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
Method Detail |
---|
public boolean start(Writer writer)
Component
start
in class ClosingUIBean
writer
- the output writer.
protected void evaluateExtraParams()
evaluateExtraParams
in class UIBean
public String getDefaultOpenTemplate()
getDefaultOpenTemplate
in class ClosingUIBean
protected String getDefaultTemplate()
UIBean
getDefaultTemplate
in class UIBean
public String getToggle()
public void setToggle(String toggle)
public String getTreeSelectedTopic()
public void setTreeSelectedTopic(String treeSelectedTopic)
public String getTreeExpandedTopic()
public void setTreeExpandedTopic(String treeExpandedTopic)
public String getTreeCollapsedTopic()
public void setTreeCollapsedTopic(String treeCollapsedTopic)
public String getRootNode()
public void setRootNode(String rootNode)
public String getChildCollectionProperty()
public void setChildCollectionProperty(String childCollectionProperty)
public String getNodeTitleProperty()
public void setNodeTitleProperty(String nodeTitleProperty)
public String getNodeIdProperty()
public void setNodeIdProperty(String nodeIdProperty)
public void setShowRootGrid(String showRootGrid)
public String getShowRootGrid()
public String getBlankIconSrc()
public void setBlankIconSrc(String blankIconSrc)
public String getExpandIconSrcMinus()
public void setExpandIconSrcMinus(String expandIconSrcMinus)
public String getExpandIconSrcPlus()
public void setExpandIconSrcPlus(String expandIconSrcPlus)
public String getGridIconSrcC()
public void setGridIconSrcC(String gridIconSrcC)
public String getGridIconSrcL()
public void setGridIconSrcL(String gridIconSrcL)
public String getGridIconSrcP()
public void setGridIconSrcP(String gridIconSrcP)
public String getGridIconSrcV()
public void setGridIconSrcV(String gridIconSrcV)
public String getGridIconSrcX()
public void setGridIconSrcX(String gridIconSrcX)
public String getGridIconSrcY()
public void setGridIconSrcY(String gridIconSrcY)
public String getIconHeight()
public void setIconHeight(String iconHeight)
public String getIconWidth()
public void setIconWidth(String iconWidth)
public String getTemplateCssPath()
public void setTemplateCssPath(String templateCssPath)
public String getToggleDuration()
public void setToggleDuration(String toggleDuration)
public String getShowGrid()
public void setShowGrid(String showGrid)
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |