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 () Initializes the Visual Design
- 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

PUBLIC DisplayJsonObject (JsonConstruct)

Purpose: Visualizes an Json Construct in a TreeView
Notes:

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

PUBLIC 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

PUBLIC ExpandNodesToLevel (integer)

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

Parameters:
piLevel INTEGER
The level to expand to
Top

PUBLIC 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

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PRIVATE InitTreeHelper ()

Purpose: Initializes the TreeView and the UltraTreeColumnResizeHelper
Notes:

Top

PROTECTED OnTreeNodeSelected (TreeNodeSelectedEventArgs)

Purpose: Publishes the TreeNodeSelected event
Notes:

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

PRIVATE 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

PRIVATE 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

PRIVATE 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

PUBLIC JSONObjectViewerControl ()

Purpose: Constructor for the BusinessEntityDesignerForm class
Notes:



Event Detail
Top

PUBLIC 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

PUBLIC LOGICAL ShowAttributeNode


Returns LOGICAL
Top

PUBLIC LOGICAL ShowPrimitiveProperties


Returns LOGICAL
Top

PUBLIC Infragistics.Win.UltraWinTree.UltraTree UltraTree


Returns Infragistics.Win.UltraWinTree.UltraTree


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 19:13:07