Packageorg.apache.flex.collections
Classpublic class FlattenedList
InheritanceFlattenedList Inheritance ArrayList Inheritance EventDispatcher Inheritance flash.events.EventDispatcher

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The FlattenedList class takes a HierarchicalData object and "flattens" it using all of the open members.



Public Properties
 PropertyDefined By
  hdata : HierarchicalData
FlattenedList
 Inheritedid : String
An id property for MXML documents.
ArrayList
 Inheritedlength : int
[read-only] The number of items.
ArrayList
  openNodes : Array
FlattenedList
 Inheritedsource : Array
The array of raw data needing conversion.
ArrayList
 Inheritedstrand : IStrand
[write-only]
ArrayList
Public Methods
 MethodDefined By
  
Constructor.
FlattenedList
 Inherited
addItem(item:Object):void
Adds an item to the end of the array.
ArrayList
 Inherited
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
 Inherited
getItemAt(index:int):Object
Fetches an item from the collection
ArrayList
 Inherited
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
 Inherited
itemUpdated(item:Object):void
Signals that an item in the array has been updated.
ArrayList
 Inherited
itemUpdatedAt(index:int):void
Signals that an item in the array has been updated.
ArrayList
  
openNode(node:Object):void
Opens the given node.
FlattenedList
 Inherited
removeAll():void
Removes all of the items from the array.
ArrayList
 Inherited
removeItem(item:Object):Boolean
Removed an item from the array and returns it.
ArrayList
 Inherited
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
 Inherited
setItemAt(item:Object, index:int):Object
Replaces the item at the given index with a new item and returns the old item.
ArrayList
 Inherited
toArray():Array
Returns a copy of the source array.
ArrayList
Events
 Event Summary Defined By
 InheritedDispatched when the collection's underlying source array is changed.ArrayList
 InheritedDispatched when the collection has added an item.ArrayList
 InheritedDispatched when the collection has removed an item.ArrayList
 InheritedDispatched when the collection has updated an item.ArrayList
Property Detail
hdataproperty
public var hdata:HierarchicalData

openNodesproperty 
public var openNodes:Array

Constructor Detail
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.

Parameters
hdata:HierarchicalData
Method Detail
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

Returns
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

Returns
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

Returns
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.