Table 113 summarizes the member variables of the TreeNode
class.
Table 113. Member variables of the TreeNode class.
Member variable | Description | Page |
---|---|---|
description | Contains a description of the tree node. | description |
isExpandable | Specifies whether the tree node is expandable; that is, whether there are elements below the current level. | isExpandable |
isGeneratable | Specifies whether the tree node is generatable; that is, whether the node can be converted to a business object definition. | isGeneratable |
name | Contains the name of the tree node. | name |
nodes | Contains the expanded hierarchy of tree nodes. | nodes |
polymorphicNature | Defines the node's nature; that is whether it is "normal" (expandable or a leaf) or "file". | polymorphicNature |
Contains a description of the tree node.
Type
public String description
Notes
The description member variable displays in the Description column of the Select Source dialog box.
Specifies whether the tree node is expandable; that is, whether there are nodes below the current level.
Type
public boolean isExpandable
Notes
The isExpandable member variable indicates whether a node is
expandable, as Table 114 shows.
Type of node | Description | Value of isExpandable |
---|---|---|
Expandable | Node has child nodes | true |
Leaf (terminating) | Node does not have child nodes but is the terminating point of a branch of the source-node hierarchy | false |
Only normal-nature nodes (nodes with their polymorphicNature member variable set to NODE_NATURE_NORMAL) can have isExpandable set to true.
Specifies whether the tree node is generatable; that is, whether the user can select this node as one for which the ODA generates content.
Type
public boolean isGeneratable
Contains the name of the tree node.
Type
public String name
Notes
The name member variable displays in the Name column of the Select Source dialog box.
Contains the expanded hierarchy of child tree nodes.
Type
public TreeNode[] nodes
Notes
The nodes member variable contains an array of TreeNode objects, one object for each of this parent node's children. A child node can, in turn, contain child nodes (grandchildren of this parent node). This member variable is only used if the node is expandable (not a leaf); that is, if the isExpandable member variable is true.
Indicates the valid actions the user can take on the tree node.
Type
public int polymorphicNature
Notes
The polymorphicNature member variable determines what actions
the user can take on the node when it displays in the Select Source dialog box
of
Business Object Wizard. This variable contains an integer node-nature
constant to indicate the nature of the
tree node. These node-nature constants are defined in the
ODKConstant interface, as Table 115 shows.
Table 115. Nature of tree nodes
For more information on node natures, see Constructing the tree nodes.