| Pacote | mx.collections |
| Interface | public interface IHierarchicalData extends IEventDispatcher |
| Implementors | HierarchicalData |
Veja também
| Método | Definido por | ||
|---|---|---|---|
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event.
| IEventDispatcher | |
|
Returns true if the node can contain children.
| IHierarchicalData | ||
![]() |
Dispatches an event into the event flow.
| IEventDispatcher | |
|
Returns an Object representing the node's children.
| IHierarchicalData | ||
|
Returns data from a node.
| IHierarchicalData | ||
|
Returns the depth of the node in the collection.
| IHierarchicalData | ||
|
Returns the parent of a node.
| IHierarchicalData | ||
|
Returns the root data item.
| IHierarchicalData | ||
|
Returns true if the node has children.
| IHierarchicalData | ||
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event.
| IEventDispatcher | |
![]() |
Removes a listener from the EventDispatcher object.
| IEventDispatcher | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| IEventDispatcher | |
| canHaveChildren | () | método |
public function canHaveChildren(node:Object):Boolean
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.
Parâmetros
node:Object — The Object that defines the node.
|
Boolean — true if the node can contain children.
|
| getChildren | () | método |
public function getChildren(node:Object):Object
Returns an Object representing the node's children.
Parâmetros
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 | () | método |
public function getData(node:Object):Object
Returns data from a node.
Parâmetros
node:Object — The node Object from which to get the data.
|
Object — The requested data.
|
| getNodeDepth | () | método |
public function getNodeDepth(node:Object):int
Returns the depth of the node in the collection.
Parâmetros
node:Object — The Object that defines the node.
|
int — The depth of the node.
|
| getParent | () | método |
public function getParent(node:Object):*
Returns the parent of a node.
The parent of a top-level node is null.
Parâmetros
node:Object — The Object that defines the node.
|
* — The parent node containing the node as child,
null for a top-level node,
and undefined if the parent cannot be determined.
|
| getRoot | () | método |
public function getRoot():Object
Returns the root data item.
RetornaObject — The Object containing the root data item.
|
| hasChildren | () | método |
public function hasChildren(node:Object):Boolean
Returns true if the node has children.
Parâmetros
node:Object — The Object that defines the node.
|
Boolean — true if the node has children.
|