C# Class Open.Core.TreeNode

Represents a node within a tree data-structure.
Inheritance: ModelBase, ITreeNode, IDisposable
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Private Properties

Свойство Type Description
FireAddingChild void
FireChildAdded void
FireChildRemoved void
FireChildSelectionChanged void
FireChildrenChanged void
FireClick void
FireRemovingChild void
FireSelectionChanged void
FromDictionary TreeNode
GetRoot ITreeNode
IsDescendent bool
OnChildSelectionChanged void
SetParent void
ToDictionary System.Collections.Dictionary

Méthodes publiques

Méthode Description
AddChild ( ITreeNode node ) : void
ChildAt ( int index ) : ITreeNode
ClearChildren ( ) : void
Contains ( ITreeNode node ) : bool
ContainsDescendent ( ITreeNode node ) : bool
FromJson ( string json, TreeNodeFactory factory ) : TreeNode

Creates a new instance of the node from JSON.

InsertChild ( int index, ITreeNode node ) : void
RemoveChild ( ITreeNode node ) : void
ToJson ( ) : string
ToString ( ) : string

Méthodes protégées

Méthode Description
OnDisposed ( ) : void
OnIsSelectedChanged ( ) : void

Invoked after the 'IsSelected' property changes.

SerializingJson ( System.Collections.Dictionary node ) : void

Allows deriving classes to suppliment the dictionary used for JSON serialization.

Use this to add custom properties only. Do not worry about the Children collection.

Private Methods

Méthode Description
FireAddingChild ( TreeNodeEventArgs e ) : void
FireChildAdded ( TreeNodeEventArgs e ) : void
FireChildRemoved ( TreeNodeEventArgs e ) : void
FireChildSelectionChanged ( ) : void
FireChildrenChanged ( ) : void
FireClick ( ) : void
FireRemovingChild ( TreeNodeEventArgs e ) : void
FireSelectionChanged ( ) : void
FromDictionary ( System.Collections.Dictionary dic, TreeNodeFactory factory ) : TreeNode
GetRoot ( ) : ITreeNode
IsDescendent ( ITreeNode parent, ITreeNode node ) : bool
OnChildSelectionChanged ( object sender, EventArgs e ) : void
SetParent ( ITreeNode node, ITreeNode value ) : void
ToDictionary ( ) : System.Collections.Dictionary

Method Details

AddChild() public méthode

public AddChild ( ITreeNode node ) : void
node ITreeNode
Résultat void

ChildAt() public méthode

public ChildAt ( int index ) : ITreeNode
index int
Résultat ITreeNode

ClearChildren() public méthode

public ClearChildren ( ) : void
Résultat void

Contains() public méthode

public Contains ( ITreeNode node ) : bool
node ITreeNode
Résultat bool

ContainsDescendent() public méthode

public ContainsDescendent ( ITreeNode node ) : bool
node ITreeNode
Résultat bool

FromJson() public static méthode

Creates a new instance of the node from JSON.
public static FromJson ( string json, TreeNodeFactory factory ) : TreeNode
json string The JSON string to parse.
factory TreeNodeFactory The factory method for creating new nodes.
Résultat TreeNode

InsertChild() public méthode

public InsertChild ( int index, ITreeNode node ) : void
index int
node ITreeNode
Résultat void

OnDisposed() protected méthode

protected OnDisposed ( ) : void
Résultat void

OnIsSelectedChanged() protected méthode

Invoked after the 'IsSelected' property changes.
protected OnIsSelectedChanged ( ) : void
Résultat void

RemoveChild() public méthode

public RemoveChild ( ITreeNode node ) : void
node ITreeNode
Résultat void

SerializingJson() protected méthode

Allows deriving classes to suppliment the dictionary used for JSON serialization.
Use this to add custom properties only. Do not worry about the Children collection.
protected SerializingJson ( System.Collections.Dictionary node ) : void
node System.Collections.Dictionary The dictionary representing the node to process.
Résultat void

ToJson() public méthode

public ToJson ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string