C# Class FairyGUI.TreeView

Inheritance: EventDispatcher
Exibir arquivo Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
indent int
treeNodeCreateCell TreeNodeCreateCellDelegate
treeNodeRender TreeNodeRenderDelegate
treeNodeWillExpand TreeNodeWillExpandDelegate

Public Methods

Method Description
AddSelection ( FairyGUI.TreeNode node, bool scrollItToView = false ) : void

ClearSelection ( ) : void

CollapseAll ( FairyGUI.TreeNode folderNode ) : void

CreateCell ( FairyGUI.TreeNode node ) : void

ExpandAll ( FairyGUI.TreeNode folderNode ) : void

GetNodeIndex ( FairyGUI.TreeNode node ) : int

GetSelectedNode ( ) : FairyGUI.TreeNode

GetSelection ( ) : List

HideFolderNode ( FairyGUI.TreeNode folderNode ) : void

RemoveNode ( FairyGUI.TreeNode node ) : void

RemoveSelection ( FairyGUI.TreeNode node ) : void

TreeView ( GList list ) : System

UpdateNode ( FairyGUI.TreeNode node ) : void

UpdateNodes ( List nodes ) : void

__clickExpandButton ( EventContext context ) : void
__clickItem ( EventContext context ) : void

Private Methods

Method Description
AfterCollapsed ( FairyGUI.TreeNode node ) : void

AfterExpanded ( FairyGUI.TreeNode node ) : void

AfterInserted ( FairyGUI.TreeNode node ) : void

AfterMoved ( FairyGUI.TreeNode node ) : void

AfterRemoved ( FairyGUI.TreeNode node ) : void

CheckChildren ( FairyGUI.TreeNode folderNode, int index ) : int

GetInsertIndexForNode ( FairyGUI.TreeNode node ) : int

Method Details

AddSelection() public method

public AddSelection ( FairyGUI.TreeNode node, bool scrollItToView = false ) : void
node FairyGUI.TreeNode
scrollItToView bool
return void

ClearSelection() public method

public ClearSelection ( ) : void
return void

CollapseAll() public method

public CollapseAll ( FairyGUI.TreeNode folderNode ) : void
folderNode FairyGUI.TreeNode
return void

CreateCell() public method

public CreateCell ( FairyGUI.TreeNode node ) : void
node FairyGUI.TreeNode
return void

ExpandAll() public method

public ExpandAll ( FairyGUI.TreeNode folderNode ) : void
folderNode FairyGUI.TreeNode
return void

GetNodeIndex() public method

public GetNodeIndex ( FairyGUI.TreeNode node ) : int
node FairyGUI.TreeNode
return int

GetSelectedNode() public method

public GetSelectedNode ( ) : FairyGUI.TreeNode
return FairyGUI.TreeNode

GetSelection() public method

public GetSelection ( ) : List
return List

HideFolderNode() public method

public HideFolderNode ( FairyGUI.TreeNode folderNode ) : void
folderNode FairyGUI.TreeNode
return void

RemoveNode() public method

public RemoveNode ( FairyGUI.TreeNode node ) : void
node FairyGUI.TreeNode
return void

RemoveSelection() public method

public RemoveSelection ( FairyGUI.TreeNode node ) : void
node FairyGUI.TreeNode
return void

TreeView() public method

public TreeView ( GList list ) : System
list GList
return System

UpdateNode() public method

public UpdateNode ( FairyGUI.TreeNode node ) : void
node FairyGUI.TreeNode
return void

UpdateNodes() public method

public UpdateNodes ( List nodes ) : void
nodes List
return void

__clickExpandButton() public method

public __clickExpandButton ( EventContext context ) : void
context EventContext
return void

__clickItem() public method

public __clickItem ( EventContext context ) : void
context EventContext
return void

Property Details

indent public_oe property

TreeView每级的缩进,单位像素。
public int indent
return int

treeNodeCreateCell public_oe property

当TreeNode需要创建对象的显示对象时回调
public TreeNodeCreateCellDelegate treeNodeCreateCell
return TreeNodeCreateCellDelegate

treeNodeRender public_oe property

当TreeNode需要更新时回调
public TreeNodeRenderDelegate treeNodeRender
return TreeNodeRenderDelegate

treeNodeWillExpand public_oe property

当TreeNode即将展开或者收缩时回调。可以在回调中动态增加子节点。
public TreeNodeWillExpandDelegate treeNodeWillExpand
return TreeNodeWillExpandDelegate