Namespace: Consultingwerk.Windows
Class 
TreeViewMenuLoader Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:TreeViewMenuLoader
Purpose:Populates the Nodes of an UltraTree based on the
contents of the ttTreeViewMenu temp-table
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Jun 16 13:54:09 CEST 2012
Notes:DEFINE TEMP-TABLE ttTreeViewMenu NO-UNDO
FIELD NodeKey AS CHARACTER
FIELD ParentNodeKey AS CHARACTER
FIELD NodeSort AS INTEGER
FIELD NodeText AS CHARACTER
FIELD NodeTag AS CHARACTER
FIELD Active AS LOGICAL INIT TRUE
FIELD ImageKey AS CHARACTER
INDEX NodeKey IS PRIMARY UNIQUE NodeKey
INDEX ParentNodeKey ParentNodeKey NodeSort .



Top Method Summary
Options Name Purpose
# CreateTreeViewNodes (TreeNodesCollection, Dictionary, character) Loads nodes into a TreeNodesCollection for a given parent node or root
+ LoadTreeViewNodes (TreeNodesCollection, Dictionary, table) Loads nodes into a TreeNodesCollection
+ LoadTreeViewNodes (UltraTree, Dictionary, table) Loads nodes into the root nodes collection of an UltraTree


Method Detail
Top

PROTECTED CreateTreeViewNodes (TreeNodesCollection, Dictionary, character)

Purpose: Loads nodes into a TreeNodesCollection for a given parent node or root
Notes:

Parameters:
poNodes Infragistics.Win.UltraWinTree.TreeNodesCollection
The reference to the TreeNodesCollection to load nodes into
poImages System.Collections.Generic.Dictionary
The Dictionary used to look up images (optional)
pcParentNodeKey CHARACTER
The parent node key, pass "" for the root nodes
Top

PUBLIC LoadTreeViewNodes (TreeNodesCollection, Dictionary, table)

Purpose: Loads nodes into a TreeNodesCollection
Notes: Starts with records that have an empty ParentNodeKey value (EQ empty string)

Parameters:
poNodes Infragistics.Win.UltraWinTree.TreeNodesCollection
The reference to the TreeNodesCollection to load nodes into
poImages System.Collections.Generic.Dictionary
The Dictionary used to look up images (optional)
ttTreeViewMenu TABLE
The ttTreeViewMenu temp-table that contains the data to load the nodes from
Top

PUBLIC LoadTreeViewNodes (UltraTree, Dictionary, table)

Purpose: Loads nodes into the root nodes collection of an UltraTree
Notes:

Parameters:
poTreeView Infragistics.Win.UltraWinTree.UltraTree
The reference to the UltraTree Control to load nodes into
poImages System.Collections.Generic.Dictionary
The Dictionary used to look up images (optional)
ttTreeViewMenu TABLE
The ttTreeViewMenu temp-table that contains the data to load the nodes from


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:54:40