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 INITIAL 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 TEMP-TABLE ttTreeViewMenu
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 TEMP-TABLE ttTreeViewMenu
The ttTreeViewMenu temp-table that contains the data to load the nodes from


Temp-Table Detail

Temp-Table ttTreeViewMenu

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:32:43