| 套件 | mx.collections |
| 介面 | public interface IHierarchicalData extends IEventDispatcher |
| 實作者 | HierarchicalData |
| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
相關 API 元素
公用方法
| 方法 | 定義自 | ||
|---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | IEventDispatcher | |
Returns true if the node can contain children. | IHierarchicalData | ||
![]() |
會將事件傳送到事件流程。 | IEventDispatcher | |
Returns an Object representing the node's children. | IHierarchicalData | ||
Returns data from a node. | IHierarchicalData | ||
Returns the root data item. | IHierarchicalData | ||
Returns true if the node has children. | IHierarchicalData | ||
![]() |
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | |
![]() |
會從 EventDispatcher 物件移除偵聽程式。 | IEventDispatcher | |
![]() |
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | IEventDispatcher | |
方法詳細資訊
canHaveChildren | () | 方法 |
public function canHaveChildren(node:Object):Boolean| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
Returns true if the node can contain children.
Nodes do not have to contain children for the method
to return true.
This method is useful in determining whether other
nodes can be appended as children to the specified node.
參數
node:Object — The Object that defines the node.
|
Boolean — true if the node can contain children.
|
getChildren | () | 方法 |
public function getChildren(node:Object):Object| 語言版本: | ActionScript 3.0 |
| 產品版本: | Flex 3 |
| 執行階段版本: | Flash Player 9, AIR 1.1 |
Returns an Object representing the node's children.
參數
node:Object — The Object that defines the node.
If null, return a collection of top-level nodes.
|
Object — An Object containing the children nodes.
|
getData | () | 方法 |
getRoot | () | 方法 |
hasChildren | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z
隱藏繼承公用方法
顯示繼承公用方法