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 110 shows.
Table
110. Nature of tree nodes
Nature of
tree node |
Description |
Node-nature
constant |
Normal |
The user can take either of the following actions:
- The user can select the node, if the node is a leaf (terminating) node. Only leaf
nodes can be selected for generation into content.
- The user can expand the
node to see more nodes. Business Object Wizard displays a plus (+)
to the left of an expandable node name.
|
NODE_NATURE_NORMAL
|
File |
The user can associate a
file from the local file system with the node. Business Object Wizard activates the
Associate files menu item in the pop-up menu that displays
when the user right-clicks on the node name. This menu item opens a
window for browsing system files. From this window, the user can
select which file to associate with the node.
For a tree node that has a file node nature, the ODA can use the
getClientFile() method
(defined in the ODKUtility class) to obtain the
user-selected file's contents.
|
NODE_NATURE_FILE
|
- Note:
- Because the TreeNode class implements the
ODKConstant interface, the node-nature constants are
available to the polymorphicNature member variable without
being qualified with the ODKConstant name.
For more information on node natures, see Constructing the tree nodes.
