適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.controls.treeClasses 

ITreeDataDescriptor  - AS3 Flex

套件mx.controls.treeClasses
介面public interface ITreeDataDescriptor

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Interface providing methods for parsing and adding nodes to a collection of data that is displayed by a Tree control.

相關 API 元素



公用方法
 方法定義自
  
addChildAt(parent:Object, newChild:Object, index:int, model:Object = null):Boolean
Adds a child node to a node at the specified index.
ITreeDataDescriptor
  
Provides access to a node's children, returning a collection view of children if they exist.
ITreeDataDescriptor
  
getData(node:Object, model:Object = null):Object
Gets the data from a node.
ITreeDataDescriptor
  
hasChildren(node:Object, model:Object = null):Boolean
Tests for the existence of children in a non-terminating node.
ITreeDataDescriptor
  
isBranch(node:Object, model:Object = null):Boolean
Tests a node for termination.
ITreeDataDescriptor
  
removeChildAt(parent:Object, child:Object, index:int, model:Object = null):Boolean
Removes a child node to a node at the specified index.
ITreeDataDescriptor
方法詳細資訊

addChildAt

()方法
public function addChildAt(parent:Object, newChild:Object, index:int, model:Object = null):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Adds a child node to a node at the specified index.

參數

parent:Object — The node object that will parent the child.
 
newChild:Object — The node object that will be parented by the node.
 
index:int — The 0-based index of where to put the child node.
 
model:Object (default = null) — The entire collection that this node is a part of.

傳回值
Booleantrue if successful.

getChildren

()方法 
public function getChildren(node:Object, model:Object = null):ICollectionView

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Provides access to a node's children, returning a collection view of children if they exist. A node can return any object in the collection as its children; children need not be nested. It is best-practice to return the same collection view for a given node.

參數

node:Object — The node object currently being evaluated.
 
model:Object (default = null) — The entire collection that this node is a part of.

傳回值
ICollectionView — An collection view containing the child nodes.

getData

()方法 
public function getData(node:Object, model:Object = null):Object

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Gets the data from a node.

參數

node:Object — The node object from which to get the data.
 
model:Object (default = null) — The collection that contains the node.

傳回值
Object — The requested data.

hasChildren

()方法 
public function hasChildren(node:Object, model:Object = null):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Tests for the existence of children in a non-terminating node.

參數

node:Object — The current node.
 
model:Object (default = null) — The entire collection that this node is a part of.

傳回值
Booleantrue if the node has at least one child.

isBranch

()方法 
public function isBranch(node:Object, model:Object = null):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Tests a node for termination. Branches are non-terminating but are not required to have any leaf nodes.

參數

node:Object — The node object currently being evaluated.
 
model:Object (default = null) — The entire collection that this node is a part of.

傳回值
Boolean — A Boolean indicating if this node is non-terminating.

removeChildAt

()方法 
public function removeChildAt(parent:Object, child:Object, index:int, model:Object = null):Boolean

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

Removes a child node to a node at the specified index.

參數

parent:Object — The node object that is the parent of the child.
 
child:Object — The node object that will be removed.
 
index:int — The 0-based index of the soon to be deleted node.
 
model:Object (default = null) — The entire collection that this node is a part of.

傳回值
Booleantrue if successful.




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。