This method is called by the children tags of the TreeItem. If there is a TreeHtmlAttribute
it will set the attribute name and value.
Parameters: attr -
Add a new child node to the end of the list.
Parameters: child - The new child node throws: IllegalArgumentException - if the name of the new childnode is not unique
Add a new child node at the specified position in the child list.
Parameters: offset - Zero-relative offset at which the new nodeshould be inserted Parameters: child - The new child node throws: IllegalArgumentException - if the name of the new childnode is not unique
Return the list of attributes. This method may return null if there are
no elements. In addition, the map may be exist but be empty.
a ArrayList of attribute values or null.
Return the ID of the tag. The id may be rewritten by the container (such
as a portal) to make sure it is unique. JavaScript may lookup the actual id
of the element by looking it up in the netui_names table written
into the HTML.
the tagId.
Remove the child node (and all children of that child) at the
specified position in the child list. If there are no children
or the specified child position is too large, then this method
just returns. (I.e. no runtime exception if the offset argument
is too large)
Parameters: offset - Zero-relative offset at which the existingnode should be removed
Set the action to be called when the node is selected. A tree node may only have a action
or href or clientAction set but not both.
Parameters: action - an action in the page flow that will run when the node is selected.
setClientAction
public void setClientAction(String clientAction)(Code)
Set the client action to be called when the node is selected. A tree node may only have a action
or href or clientAction set but not both.
Parameters: clientAction - an action in the page flow that will run when the node is selected.
Sets whether this node currently selected.
Parameters: disabled - the selected state
setExpandOnServer
public void setExpandOnServer(boolean expandOnServer)(Code)
Set the value of the expandOnServer attribute. If the attribute is 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.
Parameters: expandOnServer - boolean value indicating if the node should be expanded on the server.
Set the hyperlink which will be called when the node is selected. A tree node may only have
a action or href or clientAction set but not both.
Parameters: href - The hyperlink called when the node is selected.
Set the pathname to the icon to display when this node is visible. The name is relative to the
image directory.
Parameters: icon - The relative path to the icond.
Set the unique name of the node. Uniqueness is not verified by this routine. This routine is protected
because it is only called during add and remove of children.
Parameters: name - the name of the node.
Sets the parent node of this node. This node will set the width value (which is really the
depth in the tree of the node).
Parameters: parent - the TreeElement parent
Set the target scope for this anchor's URI. Any page flow that handles the URI will be made active within the
given scope. Scopes allow multiple page flows to be active within the same user session; page flows in different
scopes do not in general interact with each other. This attribute is commonly used in conjunction with the
target attribute to invoke a new page flow in a separate window.
Parameters: scope - a String that identifies the scope in which the target page flow will be made active.
This method will update the name of this node and all of the children node. The name
of a node reflects it's position in the tree.
Parameters: parentNode - The parent node of this node. Parameters: index - the index position of this node within the parent node.