|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.bea.wlw.netui.tags.AbstractBaseTag
com.bea.wlw.netui.tags.html.Node
public class Node
Instantiates a TreeNode object that will get added to the parent tag (either a Tree or another Node).
| Attribute Descriptions | |||
|---|---|---|---|
| Attribute | Required | Runtime Expression Evaluation | Data Bindable |
| action | No | No | No |
| An action invoked by clicking the node. | |||
| expanded | No | No | No |
| The node's expanded state. | |||
| icon | No | No | No |
| The node's icon URI. | |||
| label | No | No | Read Only |
| The label of the Node. | |||
| target | No | No | No |
| A window target. | |||
Tree,
TreeNode,
Serialized Form <netui:tree tree="{session.tree}" imageRoot="treeImages" style="tree-control" action="treeState">
<netui:node label="Root Folder" expanded="true" action="treeState" target="contentFrame">
<netui:node label="I" expanded="false" action="treeState" target="contentFrame">
<netui:node label="A" expanded="false" action="treeState" target="contentFrame">
<netui:node label="1" action="treeState" target="contentFrame"/>
<netui:node label="2" action="treeState" target="contentFrame"/>
</netui:node>
</netui:node>
</netui:node>
</netui:tree>When displayed in the browser, the <netui:node> has two parts: (1) a clickable icon that controls the expanding and collapsing of the node and (2) hyperlink text that appear immediately to the right of the icon.
The href and label attribute control the properties of the
hyperlink text. The href attribute specifies the link's destination, the
label specifies the display text of the hyperlink.
The icon attribute controls the display icon for the <netui:node>.
Note that the
display of icons can be handled automatically through the imageRoot attribute
of the Tree tag. If you point the imageRoot attribute at a folder
of appropriately named images, then any <netui:node> tags underneath the <netui:tree>
will display the appropriate icon depending on the current state of the <netui:node>, i.e.,
whether it is expanded, collapsed, etc. See the Tree tag for details.
The action attribute points to a method in the Controller file that handles
clicking on either the icon or the hyperlink.
| Field Summary | |
|---|---|
protected String |
action
|
protected String |
expanded
|
protected String |
href
|
protected String |
icon
|
protected String |
label
|
protected TreeNode |
node
|
protected String |
target
|
| Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag |
|---|
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants |
|---|
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
Node()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Add this node to the parent. |
int |
doStartTag()
Instantiate a new TreeNode. |
String |
getAction()
Returns the Node's action. |
String |
getExpanded()
Gets if the Node is expanded. |
String |
getHref()
Gets the Node's href. |
String |
getIcon()
Gets the Node icon URI. |
String |
getLabel()
Gets the Node label. |
TreeNode |
getNode()
|
String |
getTagName()
Return the name of the Tag. |
String |
getTarget()
Returns the window target. |
protected void |
localRelease()
Release any acquired resources. |
void |
registerError(EvalErrorInfo error)
This method will add an error to the errors begin tracked by this tag. |
String |
registerTagError(String message)
This will report an error from a tag. |
void |
setAction(String action)
Set the Node's action. |
void |
setExpanded(String expanded)
Sets the Node expansion state. |
void |
setHref(String href)
Sets the Node's href. |
void |
setIcon(String icon)
Sets the Node icon URI. |
void |
setLabel(String label)
Sets the Node label. |
void |
setNode(TreeNode node)
|
void |
setTarget(String target)
Sets the window target. |
| Methods inherited from class com.bea.wlw.netui.tags.AbstractBaseTag |
|---|
addTagIdMapping, containsExpression, evaluateAttributeToString, evaluateExpression, filter, filter, formatErrorString, formatString, getAttribute, getErrorsReport, getExpressionEvaluator, getJavaScriptUtils, getNearestForm, getNextId, getQualifiedBundleName, getScriptReporter, getUserLocale, hasErrors, isExpression, prepForRendering, registerAttribute, release, removeAttribute, renderAttribute, renderAttributes, reportErrors, rewriteName, setPageContext, updateExpression, write |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setParent |
| Field Detail |
|---|
protected String action
protected String expanded
protected String href
protected String icon
protected String label
protected TreeNode node
protected String target
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public String getTagName()
getTagName in class AbstractBaseTagpublic String getAction()
public void setAction(String action)
action - - the action.public String getExpanded()
public void setExpanded(String expanded)
expanded - - the expanded state.public String getHref()
public void setHref(String href)
href - - the hrefpublic String getIcon()
public void setIcon(String icon)
icon - - the icon URIimageRoot
points to a folder, then the path is relative to this folder.public String getLabel()
public void setLabel(String label)
label - - the label.public TreeNode getNode()
public void setNode(TreeNode node)
TreeNode object.public String getTarget()
public void setTarget(String target)
target - - the window target.public void registerError(EvalErrorInfo error)
AbstractBaseTag
registerError in class AbstractBaseTagpublic String registerTagError(String message)
AbstractBaseTag
registerTagError in class AbstractBaseTagmessage - - the message to register with the error
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurred
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredprotected void localRelease()
localRelease in class AbstractBaseTag
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||