C# 클래스 Open.Core.TreeNode

Represents a node within a tree data-structure.
상속: ModelBase, ITreeNode, IDisposable
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

AddChild() 공개 메소드

public AddChild ( ITreeNode node ) : void
node ITreeNode
리턴 void

ChildAt() 공개 메소드

public ChildAt ( int index ) : ITreeNode
index int
리턴 ITreeNode

ClearChildren() 공개 메소드

public ClearChildren ( ) : void
리턴 void

Contains() 공개 메소드

public Contains ( ITreeNode node ) : bool
node ITreeNode
리턴 bool

ContainsDescendent() 공개 메소드

public ContainsDescendent ( ITreeNode node ) : bool
node ITreeNode
리턴 bool

FromJson() 공개 정적인 메소드

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.
리턴 TreeNode

InsertChild() 공개 메소드

public InsertChild ( int index, ITreeNode node ) : void
index int
node ITreeNode
리턴 void

OnDisposed() 보호된 메소드

protected OnDisposed ( ) : void
리턴 void

OnIsSelectedChanged() 보호된 메소드

Invoked after the 'IsSelected' property changes.
protected OnIsSelectedChanged ( ) : void
리턴 void

RemoveChild() 공개 메소드

public RemoveChild ( ITreeNode node ) : void
node ITreeNode
리턴 void

SerializingJson() 보호된 메소드

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.
리턴 void

ToJson() 공개 메소드

public ToJson ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string