This is the factory class for DefaultTreeModel instances created from the objects
in a BusinessModel. The returned tree models contain nodes of type DisabledNode that
have a user object of type DataItemTreeNodeInfo attached. This user object contains
information necessary for displaying the nodes.
Returns a TreeModel representation of the DataItems contained in the allItems list. The nodes
in the TreeModel are of type DisabledNode, and have a user object of type DataItemTreeNodeInfo
that stores information necessary to properly display the nodes. Items that are not in the
availableItems list have the enabled property of the user object set to false. Nodes may be
grouped into Hierarchies, Levels, and Measures categories for OLAP queries. Relational queries
are represented by a tree with only leaf nodes representing the data item. For both relational and
OLAP queries, the root node of the tree is not visible. Nodes can be transformed into nodes of any
type by passing in an optional transform object.
Parameters:
allItems - - the list of items to be represented by the tree model
availableItems - - the list of items that are available for selection (these are enabled in the tree
transform - - an optional transform object (this can be null)
groupItems - - a boolean flag indicating that nodes in the tree should be grouped into item categories
locale - - the user locale object
rootName - - an optional name for the root node of the tree
infomap - - the information map used to populate the tree
Returns a tree node representing a role and the items assigned to that role. This is used in
building a tree model that represents the item selections for the selected tree model. The tree
nodes created are of type DisabledNode, but may be tranformed to nodes of any type by passing in
a tranform object. The node returned will be expanded to display all leaf nodes.
Parameters:
roleLabel - - the label of the role object
roleName - - the name of the role object
selectedItems - - the list of items selected for the role
transform - - an optional transform object
selectedRole - - the name of the role being modified by the user. If this is equal to the
passed in role name, then the node created is expanded to show the leaf nodes, otherwise the
node is collapsed to only display the role label.
Returns:
a tree node representing the items assigned to a role