(Preview)
Package | mx.collections |
Interface | public interface IHierarchicalData extends IEventDispatcher |
Implementors | HierarchicalData |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Related API Elements
Public Methods
Method | Defined By | ||
---|---|---|---|
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 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 |
Method Detail
canHaveChildren | () | method |
public function canHaveChildren(node:Object):Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | 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.
Parameters
node:Object — The Object that defines the node.
|
Boolean — true if the node can contain children.
|
getChildren | () | method |
public function getChildren(node:Object):Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns an Object representing the node's children.
Parameters
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 | () | method |
getRoot | () | method |
hasChildren | () | method |
Wed Nov 21 2018, 06:34 AM -08:00