Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.collections 

IHierarchicalCollectionView  - AS3 Flex

Pacchettomx.collections
Interfacciapublic interface IHierarchicalCollectionView extends ICollectionView , IEventDispatcher
Implementatori HierarchicalCollectionView

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The IHierarchicalCollectionView interface defines an interface for hierarchical or grouped data. Typically, you use this data with the AdvancedDataGrid control.

Elementi API correlati



Proprietà pubbliche
 ProprietàDefinito da
 InheritedfilterFunction : Function
A function that the view will use to eliminate items that do not match the function's criteria.
ICollectionView
  hasRoot : Boolean
[sola lettura] 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
 Inheritedlength : int
[sola lettura] 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
 Inheritedsort : ISort
The ISort that will be applied to the ICollectionView.
ICollectionView
  source : IHierarchicalData
The source data of the IHierarchicalCollectionView.
IHierarchicalCollectionView
Metodi pubblici
 MetodoDefinito da
  
addChild(parent:Object, newChild:Object):Boolean
Adds a child node to a node of the data.
IHierarchicalCollectionView
  
addChildAt(parent:Object, newChild:Object, index:int):Boolean
Adds a child node to a node of the data at a specific index in the data.
IHierarchicalCollectionView
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento.
IEventDispatcher
  
Closes a node to hide its children.
IHierarchicalCollectionView
 Inherited
Returns whether the view contains the specified object.
ICollectionView
 Inherited
Creates a new IViewCursor that works with this view.
ICollectionView
 Inherited
Prevents changes to the collection itself and items within the collection from being dispatched by the view.
ICollectionView
 Inherited
Invia un evento nel flusso di eventi.
IEventDispatcher
 Inherited
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
 Inherited
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento.
IEventDispatcher
 Inherited
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
 Inherited
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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Rimuove un listener dall'oggetto EventDispatcher.
IEventDispatcher
 Inherited
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato.
IEventDispatcher
Descrizione delle proprietà

hasRoot

proprietà
hasRoot:Boolean  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: 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.



Implementazione
    public function get hasRoot():Boolean

openNodes

proprietà 
openNodes:Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

An Array of Objects containing the data provider element for all the open branch nodes of the data.



Implementazione
    public function get openNodes():Object
    public function set openNodes(value:Object):void

showRoot

proprietà 
showRoot:Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: 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.

Il valore predefinito è true.



Implementazione
    public function get showRoot():Boolean
    public function set showRoot(value:Boolean):void

Elementi API correlati

source

proprietà 
source:IHierarchicalData

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The source data of the IHierarchicalCollectionView.



Implementazione
    public function get source():IHierarchicalData
    public function set source(value:IHierarchicalData):void
Descrizione dei metodi

addChild

()metodo
public function addChild(parent:Object, newChild:Object):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Adds a child node to a node of the data.

Parametri

parent:Object — The Object that defines the parent node.
 
newChild:Object — The Object that defines the new node.

Restituisce
Booleantrue if the node is added successfully.

addChildAt

()metodo 
public function addChildAt(parent:Object, newChild:Object, index:int):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Adds a child node to a node of the data at a specific index in the data.

Parametri

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.

Restituisce
Booleantrue if the node is added successfully.

closeNode

()metodo 
public function closeNode(node:Object):void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Closes a node to hide its children.

Parametri

node:Object — The Object that defines the node.

getChildren

()metodo 
public function getChildren(node:Object):ICollectionView

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns a collection of children, if they exist.

Parametri

node:Object — The Object that defines the node. If null, return a collection of top level nodes.

Restituisce
ICollectionView — ICollectionView instance containing the child nodes.

getNodeDepth

()metodo 
public function getNodeDepth(node:Object):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the depth of the node in the collection.

Parametri

node:Object — The Object that defines the node.

Restituisce
int — The depth of the node.

getParentItem

()metodo 
public function getParentItem(node:Object):*

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the parent of a node. The parent of a top-level node is null.

Parametri

node:Object — The Object that defines the node.

Restituisce
* — The parent node containing the node as child, null for a top-level node, and undefined if the parent cannot be determined.

openNode

()metodo 
public function openNode(node:Object):void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Opens a node to display its children.

Parametri

node:Object — The Object that defines the node.

removeChild

()metodo 
public function removeChild(parent:Object, child:Object):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Removes the child node from the parent node.

Parametri

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.

Restituisce
Booleantrue if the node is removed successfully.

removeChildAt

()metodo 
public function removeChildAt(parent:Object, index:int):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Removes the child node from a node at the specified index.

Parametri

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.

Restituisce
Booleantrue if successful, and false if not.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.