Adding Node Types

When a loader retrieves data to be displayed by the context viewer, each element in the context viewer tree will be assigned a node type. The node type describes the following about the element to which it is assigned.

CONTEXTNODETYPE
This attribute holds the ID for the node type. The ID maps to a code table value in the ContextNodeType code table to allow the node type to be referenced in code via its java identifier.
Loadable
This boolean flag allows the context viewer to decide whether expanding an element results in a server call to retrieve additional context data.
menuID
This is the ID for the menu to which this node type links.
isBranch
This boolean flag allows the context viewer to decide whether the node has children. A node can have children as a result of a read from the CCV, or as a result of a user click (which results in a read from the CCV to get the children). If loadable and isBranch are both true then the element will indicate that children are available, but the children will not be read until the user clicks the element.