C# Class ZForge.Controls.TreeViewAdv.Tree.TreeModel

Provides a simple ready to use implementation of ITreeModel. Warning: this class is not optimized to work with big amount of data. In this case create you own implementation of ITreeModel, and pay attention on GetChildren and IsLeaf methods.
Inheritance: ITreeModel
Datei anzeigen Open project: zhuangyy/Motion

Public Methods

Method Description
FindNode ( TreePath path ) : Node
GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
GetPath ( Node node ) : TreePath
IsLeaf ( TreePath treePath ) : bool
OnStructureChanged ( TreePathEventArgs args ) : void
TreeModel ( ) : System

Private Methods

Method Description
FindNode ( Node root, TreePath path, int level ) : Node
OnNodeInserted ( Node parent, int index, Node node ) : void
OnNodeRemoved ( Node parent, int index, Node node ) : void
OnNodesChanged ( TreeModelEventArgs args ) : void

Method Details

FindNode() public method

public FindNode ( TreePath path ) : Node
path TreePath
return Node

GetChildren() public method

public GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
treePath TreePath
return System.Collections.IEnumerable

GetPath() public method

public GetPath ( Node node ) : TreePath
node Node
return TreePath

IsLeaf() public method

public IsLeaf ( TreePath treePath ) : bool
treePath TreePath
return bool

OnStructureChanged() public method

public OnStructureChanged ( TreePathEventArgs args ) : void
args TreePathEventArgs
return void

TreeModel() public method

public TreeModel ( ) : System
return System