Node Class

com.bea.wlw.netui.tags.html
Node Class

public class Node

    extends AbstractBaseTag

Instantiates a TreeNode object that will get added to the parent tag (either a Tree or another Node).

Attribute Descriptions
AttributeRequiredRuntime Expression Evaluation Data Bindable
actionNoNoNo
An action invoked by clicking the node.
expandedNoNoNo
The node's expanded state.
iconNoNoNo
The node's icon URI.
labelNoNoRead Only
The label of the Node.
targetNoNoNo
A window target.

Related Topics

<netui:tree> Tag Sample
<netui:tree> Tag: Dynamic Tree Sample
Tree
TreeNode


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        Node
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag

Field Summary

protected String
action
String
protected String
expanded
String
protected String
href
String
protected String
icon
String
protected String
label
String
protected TreeNode
node
TreeNode
protected String
target
String
   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

Node()

 

Method Summary

public int
doEndTag()
Add this node to the parent.
public int
doStartTag()
Instantiate a new TreeNode.
public String
getAction()
Returns the Node's action.
public String
getExpanded()
Gets if the Node is expanded.
public String
getHref()
Gets the Node's href.
public String
getIcon()
Gets the Node icon URI.
public String
getLabel()
Gets the Node label.
public TreeNode
getNode()
public String
getTagName()
Return the name of the Tag.
public String
getTarget()
Returns the window target.
protected void
localRelease()
Release any acquired resources.
public void
registerError(EvalErrorInfo error)
This method will add an error to the errors begin tracked by this tag.
public String
registerTagError(String message)
This will report an error from a tag.
public void
setAction(String action)
Set the Node's action.
public void
setExpanded(String expanded)
Sets the Node expansion state.
public void
setHref(String href)
Sets the Node's href.
public void
setIcon(String icon)
Sets the Node icon URI.
public void
setLabel(String label)
Sets the Node label.
public void
setNode(TreeNode node)
public void
setTarget(String target)
Sets the window target.
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getUserLocale, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Field Detail

action

protected String action


expanded

protected String expanded


href

protected String href


icon

protected String icon


label

protected String label


node

protected TreeNode node


target

protected String target

 

Constructor Detail

Node

public Node()
 

Method Detail

doEndTag() Method

public int doEndTag()
throws JspException
Add this node to the parent.

Overrides
BodyTagSupport.doEndTag()

Exceptions

JspException
if a JSP exception has occurred

doStartTag() Method

public int doStartTag()
throws JspException
Instantiate a new TreeNode.

Overrides
BodyTagSupport.doStartTag()

Exceptions

JspException
if a JSP exception has occurred

getAction() Method

public String getAction()
Returns the Node's action.

Returns

the action.

getExpanded() Method

public String getExpanded()
Gets if the Node is expanded.

Returns

the expanded state.

getHref() Method

public String getHref()
Gets the Node's href.

Returns

the href.

getIcon() Method

public String getIcon()
Gets the Node icon URI.

Returns

the icon URI.

getLabel() Method

public String getLabel()
Gets the Node label.

Returns

the label.

getNode() Method

public TreeNode getNode()

getTagName() Method

public String getTagName()
Return the name of the Tag.

Overrides
AbstractBaseTag.getTagName()

getTarget() Method

public String getTarget()
Returns the window target.

Returns

the window target.

localRelease() Method

protected void localRelease()
Release any acquired resources.

Overrides
AbstractBaseTag.localRelease()

registerError(EvalErrorInfo) Method

public void registerError(EvalErrorInfo error)
Description copied from AbstractBaseTag.registerError(EvalErrorInfo)
This method will add an error to the errors begin tracked by this tag.

Overrides
AbstractBaseTag.registerError(EvalErrorInfo)

registerTagError(String) Method

public String registerTagError(String message)
Description copied from AbstractBaseTag.registerTagError(String)
This will report an error from a tag. The error will contain a message. If error reporting is turned off, the message will be returned and the caller should throw a JspException to report the error.

Overrides
AbstractBaseTag.registerTagError(String)

Parameters

message
- the message to register with the error

Returns

null

setAction(String) Method

public void setAction(String action)
Set the Node's action.

Parameters

action
- the action.

setExpanded(String) Method

public void setExpanded(String expanded)
Sets the Node expansion state.

Parameters

expanded
- the expanded state.

setHref(String) Method

public void setHref(String href)
Sets the Node's href.

Parameters

href
- the href

setIcon(String) Method

public void setIcon(String icon)
Sets the Node icon URI.

Parameters

icon
- the icon URI

setLabel(String) Method

public void setLabel(String label)
Sets the Node label.

Parameters

label
- the label.

setNode(TreeNode) Method

public void setNode(TreeNode node)

setTarget(String) Method

public void setTarget(String target)
Sets the window target.

Parameters

target
- the window target.