|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleTagSupport
AbstractSimpleTag
TreeItem
public class TreeItem
Instantiates a TreeElement object that will get added to the parent tag (either a Tree or another TreeItem).
Tree
,
TreeElement
<netui:treeItem label="Login" action="/netui/login/Login.jpf" />
In this next sample, a TreeItem contained by a parent TreeItem or Tree will display with the label of "Human Resources" and icon "folder16.gif" and most likely will have child TreeItem tags because it does not have an action and starts expanded.
<netui:treeItem label="Human Resources" icon="folder16.gif" expanded="true">
Constructor Summary | |
---|---|
TreeItem()
|
Method Summary | |
---|---|
void |
addParameter(String name,
Object value,
String facet)
This method will allow a tag that produces one or more Urls to have parameters set on the tag. |
void |
doTag()
Instantiate a new TreeElement. |
TreeElement |
getNode()
|
String |
getTagName()
Return the name of the Tag. |
void |
setAction(String action)
Set the TreeItem's action. |
void |
setAddedChild()
|
void |
setClientAction(String action)
Sets an action to run on the client when the tree is selected. |
void |
setDisabled(boolean disabled)
Disables the TreeItem. |
void |
setExpanded(boolean expanded)
Sets the TreeItem expansion state. |
void |
setExpandOnServer(boolean expandOnServer)
Set the value of the expandOnServer attribute. |
void |
setHref(String href)
Sets the TreeItem's href. |
void |
setIcon(String icon)
Sets the TreeItem icon URI. |
void |
setItemAttribute(TreeHtmlAttributeInfo attr)
This method is called by the children tags of the TreeItem. |
void |
setItemContent(String content)
|
void |
setItemInheritableState(InheritableState state)
|
void |
setItemLabel(String label)
This method is called by children tags of the TreeItem. |
void |
setScope(String scope)
Set the target scope for this tree node's URI. |
void |
setTagId(String tagId)
Set the ID of the tag. |
void |
setTarget(String target)
Sets the window target. |
void |
setTitle(String title)
Sets the TreeItems title. |
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 |
Constructor Detail |
---|
public TreeItem()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractSimpleTag
public void setAction(String action) throws JspException
action
- - the action.
JspException
public void setClientAction(String action) throws JspException
action
- - the client action.
JspException
public void setTagId(String tagId) throws JspException
tagId
- - the tagId.
JspException
public void setExpanded(boolean expanded)
expanded
- - the expanded state.public void setDisabled(boolean disabled)
disabled
- - the enabled/disabled state.public void setExpandOnServer(boolean expandOnServer)
true
and runAtClient
is also true, then an expansion on this node will cause that
to happen on the server. When runAtClient is false, all expansions will happen on the server.
expandOnServer
- boolean value indicating if the node should be expanded on the server.public void setHref(String href) throws JspException
href
- - the href
JspException
public void setTitle(String title)
title
- public void setScope(String scope)
target
attribute (setTarget(java.lang.String)
) to invoke a new page flow in a separate window.
scope
- a String that identifies the scope in which the target page flow will be made active.public void setIcon(String icon)
icon
- - the icon URIpublic void setItemLabel(String label)
TreeLabel
it will set the text of the label. A child TreeLabel
will override the label
attribute.
label
- The text of the Label to be displayed for this TreeItem.public void setItemContent(String content)
content
- public void setItemAttribute(TreeHtmlAttributeInfo attr)
TreeHtmlAttribute
it will set the attribute name and value.
attr
- public void setItemInheritableState(InheritableState state)
public void setAddedChild()
public TreeElement getNode()
public void setTarget(String target)
target
- - the window target.public void addParameter(String name, Object value, String facet) throws JspException
IUrlParams
addParameter
in interface IUrlParams
name
- The name of the parameter to be added to the URL.value
- The value of the parameter.facet
- The name of a facet for which the parameter should be added.
JspException
public void doTag() throws JspException, IOException
doTag
in interface SimpleTag
doTag
in class SimpleTagSupport
JspException
- if a JSP exception has occurred
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |