| Paquete | mx.collections |
| Interfaz | public interface IHierarchicalCollectionView extends ICollectionView , IEventDispatcher |
| Implementadores | HierarchicalCollectionView |
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Elementos de API relacionados
| Propiedad | Definido por | ||
|---|---|---|---|
![]() | filterFunction : Function
A function that the view will use to eliminate items that do not
match the function's criteria. | ICollectionView | |
| hasRoot : Boolean [solo lectura]
A flag that, if true, indicates that the current data provider has a root node;
for example, a single top-level node in a hierarchical structure. | IHierarchicalCollectionView | ||
![]() | length : int [solo lectura]
The number of items in this view. | ICollectionView | |
| openNodes : Object
An Array of Objects containing the data provider element
for all the open branch nodes of the data. | IHierarchicalCollectionView | ||
| showRoot : Boolean
A Boolean flag that specifies whether to display the data provider's root node. | IHierarchicalCollectionView | ||
![]() | sort : ISort
The ISort that will be applied to the ICollectionView. | ICollectionView | |
| source : IHierarchicalData
The source data of the IHierarchicalCollectionView. | IHierarchicalCollectionView | ||
| Método | Definido por | ||
|---|---|---|---|
Adds a child node to a node of the data. | IHierarchicalCollectionView | ||
Adds a child node to a node of the data at a specific index in the data. | IHierarchicalCollectionView | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | IEventDispatcher | |
Closes a node to hide its children. | IHierarchicalCollectionView | ||
![]() |
Returns whether the view contains the specified object. | ICollectionView | |
![]() |
Creates a new IViewCursor that works with this view. | ICollectionView | |
![]() |
Prevents changes to the collection itself and items within the
collection from being dispatched by the view. | ICollectionView | |
![]() |
Distribuye un evento en el flujo del evento. | IEventDispatcher | |
![]() |
Enables auto-updating. | ICollectionView | |
Returns a collection of children, if they exist. | IHierarchicalCollectionView | ||
Returns the depth of the node in the collection. | IHierarchicalCollectionView | ||
Returns the parent of a node. | IHierarchicalCollectionView | ||
![]() |
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | IEventDispatcher | |
![]() | itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notifies the view that an item has been updated. | ICollectionView | |
Opens a node to display its children. | IHierarchicalCollectionView | ||
![]() |
Applies the sort and filter to the view. | ICollectionView | |
Removes the child node from the parent node. | IHierarchicalCollectionView | ||
Removes the child node from a node at the specified index. | IHierarchicalCollectionView | ||
![]() |
Elimina un detector del objeto EventDispatcher. | IEventDispatcher | |
![]() |
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | IEventDispatcher | |
hasRoot | propiedad |
hasRoot:Boolean [solo lectura] | Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
A flag that, if true, indicates that the current data provider has a root node;
for example, a single top-level node in a hierarchical structure.
XML and Object are examples of data types that have a root node,
while Lists and Arrays do not.
Implementación
public function get hasRoot():BooleanopenNodes | propiedad |
openNodes:Object| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
An Array of Objects containing the data provider element for all the open branch nodes of the data.
Implementación
public function get openNodes():Object public function set openNodes(value:Object):voidshowRoot | propiedad |
showRoot:Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
A Boolean flag that specifies whether to display the data provider's root node.
If the source data has a root node, and this property is set to
false, the collection will not include the root item.
Only the descendants of the root item will be included in the collection.
This property has no effect on a source with no root node, such as List and Array objects.
El valor predeterminado es true.
Implementación
public function get showRoot():Boolean public function set showRoot(value:Boolean):voidElementos de API relacionados
source | propiedad |
source:IHierarchicalData| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The source data of the IHierarchicalCollectionView.
Implementación
public function get source():IHierarchicalData public function set source(value:IHierarchicalData):voidaddChild | () | método |
public function addChild(parent:Object, newChild:Object):Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Adds a child node to a node of the data.
Parámetros
parent:Object — The Object that defines the parent node.
| |
newChild:Object — The Object that defines the new node.
|
Boolean — true if the node is added successfully.
|
addChildAt | () | método |
public function addChildAt(parent:Object, newChild:Object, index:int):Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Adds a child node to a node of the data at a specific index in the data.
Parámetros
parent:Object — The Object that defines the parent node.
| |
newChild:Object — The Object that defines the new node.
| |
index:int — The zero-based index of where to insert the child node.
|
Boolean — true if the node is added successfully.
|
closeNode | () | método |
getChildren | () | método |
public function getChildren(node:Object):ICollectionView| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Returns a collection of children, if they exist.
Parámetros
node:Object — The Object that defines the node.
If null, return a collection of top level nodes.
|
ICollectionView — ICollectionView instance containing the child nodes.
|
getNodeDepth | () | método |
public function getNodeDepth(node:Object):int| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
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.
|
getParentItem | () | método |
public function getParentItem(node:Object):*| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
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.
|
openNode | () | método |
removeChild | () | método |
public function removeChild(parent:Object, child:Object):Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes the child node from the parent node.
Parámetros
parent:Object — The Object that defines the parent node,
and null for top-level nodes.
| |
child:Object — The Object that defines the child node to be removed.
|
Boolean — true if the node is removed successfully.
|
removeChildAt | () | método |
public function removeChildAt(parent:Object, index:int):Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes the child node from a node at the specified index.
Parámetros
parent:Object — The node object that currently parents the child node.
Set parent to null for top-level nodes.
| |
index:int — The zero-based index of the child node to remove relative to the parent.
|
Boolean — true if successful, and false if not.
|
Tue Jun 12 2018, 02:12 PM Z
Ocultar propiedades públicas heredadas
Mostrar propiedades públicas heredadas