Package | org.apache.flex.collections |
Class | public class FlattenedList |
Inheritance | FlattenedList ![]() ![]() ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Property | Defined By | ||
---|---|---|---|
hdata : HierarchicalData | FlattenedList | ||
![]() | id : String
An id property for MXML documents. | ArrayList | |
![]() | length : int [read-only]
The number of items. | ArrayList | |
openNodes : Array | FlattenedList | ||
![]() | source : Array
The array of raw data needing conversion. | ArrayList | |
![]() | strand : IStrand [write-only] | ArrayList |
Method | Defined By | ||
---|---|---|---|
FlattenedList(hdata:HierarchicalData)
Constructor. | FlattenedList | ||
![]() | addItem(item:Object):void
Adds an item to the end of the array. | ArrayList | |
![]() | addItemAt(item:Object, index:int):void
Inserts an item to a specific location within the array. | ArrayList | |
closeNode(node:Object):void
Closes the given node. | FlattenedList | ||
getDepth(node:Object):int
Returns the depth of the node with the root being zero. | FlattenedList | ||
![]() | getItemAt(index:int):Object
Fetches an item from the collection
| ArrayList | |
![]() | getItemIndex(item:Object):int
Fetches an item from the collection given an index. | ArrayList | |
hasChildren(node:Object):Boolean
Returns true if the node has children nodes. | FlattenedList | ||
isOpen(node:Object):Boolean
Returns true if the node is currently open. | FlattenedList | ||
![]() | itemUpdated(item:Object):void
Signals that an item in the array has been updated. | ArrayList | |
![]() | itemUpdatedAt(index:int):void
Signals that an item in the array has been updated. | ArrayList | |
openNode(node:Object):void
Opens the given node. | FlattenedList | ||
![]() | removeAll():void
Removes all of the items from the array. | ArrayList | |
![]() | removeItem(item:Object):Boolean
Removed an item from the array and returns it. | ArrayList | |
![]() | removeItemAt(index:int):Object
Removes an item from a specific location within the array and
returns it. | ArrayList | |
reset():void
Resets the list so that only the top root node is open. | FlattenedList | ||
![]() | setItemAt(item:Object, index:int):Object
Replaces the item at the given index with a new item and
returns the old item. | ArrayList | |
![]() | toArray():Array
Returns a copy of the source array. | ArrayList |
hdata | property |
public var hdata:HierarchicalData
openNodes | property |
public var openNodes:Array
FlattenedList | () | Constructor |
public function FlattenedList(hdata:HierarchicalData)
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Constructor.
Parametershdata:HierarchicalData |
closeNode | () | method |
public function closeNode(node:Object):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Closes the given node. The array data now contains fewer elements.
Parameters
node:Object |
getDepth | () | method |
public function getDepth(node:Object):int
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Returns the depth of the node with the root being zero.
Parameters
node:Object |
int |
hasChildren | () | method |
public function hasChildren(node:Object):Boolean
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Returns true if the node has children nodes.
Parameters
node:Object |
Boolean |
isOpen | () | method |
public function isOpen(node:Object):Boolean
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Returns true if the node is currently open.
Parameters
node:Object |
Boolean |
openNode | () | method |
public function openNode(node:Object):void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Opens the given node. The array data now contains more elements.
Parameters
node:Object |
reset | () | method |
public function reset():void
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Resets the list so that only the top root node is open.