Namespace: Consultingwerk.Windows.Util.Controls
Class 
JSONObjectViewerControl Copy to Clipboard
Parent classes:
Inherits: Progress.Windows.UserControl

File:JSONObjectViewerControl
Purpose:Reads a Json Construct and Visualizes the content in a
TreeView
Author(s):Mark Bartscherer / Consultingwerk Ltd.
Created:Tue Nov 29 18:28:35 CET 2016



Top Method Summary
Options Name Purpose
DisplayJsonObject (JsonConstruct) Visualizes an Json Construct in a TreeView
DisplayJsonObject (JsonConstruct, logical) Visualizes an Json Construct in a TreeView
ExpandNodesToLevel (integer) Expands the tree nodes up to the provided level
CHARACTER GetNodePath (character) Finds a node in the tree and constructs a /-delimited path from the labels
InitializeComponent ()
InitTreeHelper () Initializes the TreeView and the UltraTreeColumnResizeHelper
OnTreeNodeSelected (TreeNodeSelectedEventArgs) Publishes the TreeNodeSelected event
ultraTree1_AfterSelect (Object, SelectEventArgs) Reads an JsonArray and adds a TreeNode for each of it's elements
WalkThroughJson (UltraTreeNode, JsonArray) Reads an JsonArray and adds a TreeNode for each of it's elements
WalkThroughJson (UltraTreeNode, JsonObject) Reads an JsonObject and adds a TreeNode for each of it's elements

Top Constructor Summary
Options Name Purpose
JSONObjectViewerControl () Constructor for the BusinessEntityDesignerForm class

Top Event Summary
Options Name Purpose
TreeNodeSelected (Object, TreeNodeSelectedEventArgs) Event raised after a node has been selected in the tree

Top Property Summary
Options Name Purpose
LOGICAL ShowAttributeNode
LOGICAL ShowPrimitiveProperties
Infragistics.Win.UltraWinTree.UltraTree UltraTree


Method Detail
Top

DisplayJsonObject (JsonConstruct)

Purpose: Visualizes an Json Construct in a TreeView
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonConstruct
The JsonConstruct to visualize
Top

DisplayJsonObject (JsonConstruct, logical)

Purpose: Visualizes an Json Construct in a TreeView
Notes:

Parameters:
poJsonObject Progress.Json.ObjectModel.JsonConstruct
The JsonObject to visualize
plHideSerializeType LOGICAL
Switch to Show/Hide the Consultingwerk Serialize Attribute in Json objects
Top

ExpandNodesToLevel (integer)

Purpose: Expands the tree nodes up to the provided level
Notes:

Parameters:
piLevel INTEGER
The level to expand to
Top

CHARACTER GetNodePath (character)

Purpose: Finds a node in the tree and constructs a /-delimited path from the labels
Notes: Path can be used by the JsonHelper's GetJsonObjectByPath() or other Get*ByPath() methods

Parameters:
pcItemKey CHARACTER
Key of a node in the tree
Returns CHARACTER
The node path
Top

InitializeComponent ()


Top

InitTreeHelper ()

Purpose: Initializes the TreeView and the UltraTreeColumnResizeHelper
Notes:

Top

OnTreeNodeSelected (TreeNodeSelectedEventArgs)

Purpose: Publishes the TreeNodeSelected event
Notes:

Parameters:
e Consultingwerk.Windows.Controls.TreeNodeSelectedEventArgs
The event args for the selection
Top

ultraTree1_AfterSelect (Object, SelectEventArgs)

Purpose: Reads an JsonArray and adds a TreeNode for each of it's elements
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e Infragistics.Win.UltraWinTree.SelectEventArgs
SelectEventArgs with the data for this event
Top

WalkThroughJson (UltraTreeNode, JsonArray)

Purpose: Reads an JsonArray and adds a TreeNode for each of it's elements
Notes:

Parameters:
poParentNode Infragistics.Win.UltraWinTree.UltraTreeNode
Object reference to the Parent TreeNode
poJsonArray Progress.Json.ObjectModel.JsonArray
Object reference of the current JsonArray object
Top

WalkThroughJson (UltraTreeNode, JsonObject)

Purpose: Reads an JsonObject and adds a TreeNode for each of it's elements
Notes:

Parameters:
poParentNode Infragistics.Win.UltraWinTree.UltraTreeNode
Object reference to the Parent TreeNode
poJsonObject Progress.Json.ObjectModel.JsonObject
Object reference of the current JsonObject object


Constructor Detail
Top

JSONObjectViewerControl ()

Purpose: Constructor for the BusinessEntityDesignerForm class
Notes:



Event Detail
Top

TreeNodeSelected (Object, TreeNodeSelectedEventArgs)

Purpose: Event raised after a node has been selected in the tree
Notes:

Parameters:
sender Progress.Lang.Object
The reference to the object that raised the event
e Consultingwerk.Windows.Controls.TreeNodeSelectedEventArgs
The TreeNodeSelectedEventArgs with the data for this event


Property Detail
Top

LOGICAL ShowAttributeNode


Returns LOGICAL
Top

LOGICAL ShowPrimitiveProperties


Returns LOGICAL
Top

Infragistics.Win.UltraWinTree.UltraTree UltraTree


Returns Infragistics.Win.UltraWinTree.UltraTree


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       30.03.2026 11:16:20