Develop > Presentation layer > Customize WebSphere Commerce Accelerator, Organization Administration Console, or Administration Console > Tools framework > Dynamic trees


DynamicTreeNode object properties

The following are the possible properties of a DynamicTreeNode object:

Property Description
protected String name A required value that specifies a text label for the node. The locale specific label is obtained by the data bean.
protected String childrenUrlParam A required value that specifies the URL parameters used to construct the full URL for expanding the node. For example, if the childrenUrlParam is p1=a&p2=99, a full URL will be constructed by JavaScript to something like:

 DynamicTreeData?XMLFile=common.testTree&p1=a&p2=99

This full URL serves as the node-expanding-URL, which your data bean must understand when it is called. If this value is null or empty, and there is not at least one child preinstalled, the node becomes a leaf and cannot be expanded from the tree interface.

protected String[][] contextMenu A required array of string arrays which holds the name-value pairs for the context menu. The first item in the array is the locale dependent menu title. The second item in the array is the URL that launches the node's action. For example:

contextMenu[0][0] = "Open"; contextMenu[0][1] = "/webapp/wcs/tools/servlet/DialogView?XMLFile=csr.shopperSearch"; contextMenu[0][0] = ""; contextMenu[0][1] = "";  

Note:

A blank name-value pair yields a divider line in the context menu.
protected Vector children An optional vector of the same DynamicTreeNode class to hold information for each child of this node. It only needs to be populated to preinstall more than one level's nodes. If not, leave it as null. If more than one child is included in a node, the childrenURLParam is ignored.
protected String value An optional value of this node or leaf. (Product ID, for example): 13323
protected String contextMenuParams An optional value that specifies the parameters that are passed in all instances in the tree when an action is launched from the context menu.
protected String[] iconType An optional value that specifies the icon type applied to this node or leaf. If this is specified, also have a matching DynamicTreeIconType object which specifies the actual icon graphic files included. A node or leaf may be of more than one icon type.
protected String menuType An optional value that specifies the menu type for the current node or leaf. If this is specified, a matching DynamicTreeMenuType object must be created.


Related concepts

Dynamic trees


Related tasks

Add a dynamic tree

Related reference

Dynamic tree JavaScript functions


+

Search Tips   |   Advanced Search