org.apache.beehive.netui.tags.tree
Class TreeHtmlAttribute
Object
SimpleTagSupport
AbstractSimpleTag
TreeHtmlAttribute
- All Implemented Interfaces:
- JspTag, SimpleTag, INetuiTag
public class TreeHtmlAttribute
- extends AbstractSimpleTag
- See Also:
Tree
,
TreeElement
- Example
- The following example shows a <netui:tree> tag with both a
child <netui:treeLabel> and <netui:treeHtmlAttribute> tag that form the
label for the root folder of the tree. The <netui:treeHtmlAttribute>
outputs the attribute
name="A1"
on the anchor element used for
the selection link of the tree item.
<netui:tree dataSource="pageFlow.myTree" selectionAction="postback" tagId="myTree">
<netui:treeItem expanded="true" >
<netui:treeLabel>Root Folder</netui:treeLabel>
<netui:treeHtmlAttribute attribute="name" value="A1" onSelectionLink="true"/>
</netui:treeItem>
</netui:tree>
Methods inherited from class AbstractSimpleTag |
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write |
Methods inherited from class SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeHtmlAttribute
public TreeHtmlAttribute()
getTagName
public String getTagName()
- Return the name of the Tag.
- Specified by:
getTagName
in interface INetuiTag
- Specified by:
getTagName
in class AbstractSimpleTag
- Returns:
- the name of the tag.
setAttribute
public void setAttribute(String attr)
- Sets the name of the attribute. This must be in the proper HTML Attribute form. For example,
"onmouseclick" or "href".
- Parameters:
attr
- the name of the HTML attribute.
setValue
public void setValue(String value)
- Sets HTML attribute value.
- Parameters:
value
- The value of the HTML Attribute.
setOnIcon
public void setOnIcon(boolean onIcon)
- Parameters:
onIcon
-
setOnSelectionLink
public void setOnSelectionLink(boolean onSelectionLink)
- Parameters:
onSelectionLink
-
setOnDiv
public void setOnDiv(boolean onDiv)
- Parameters:
onDiv
-
setApplyToDescendents
public void setApplyToDescendents(boolean applyToDescendents)
- Parameters:
applyToDescendents
-
doTag
public void doTag()
throws JspException
- Specified by:
doTag
in interface SimpleTag
- Overrides:
doTag
in class SimpleTagSupport
- Throws:
JspException