Naslaggids voor Adobe ActionScript® 3.0 voor het Adobe® Flash®-platform
Startpagina  |  Lijst met pakketten en klassen verbergen |  Pakketten  |  Klassen  |  Nieuw  |  Index  |  Bijlagen  |  Waarom in het Engels?
Filters: Gegevens ophalen van server...
Gegevens ophalen van server...
mx.core 

UIComponentDescriptor  - AS3 Flex

Pakketmx.core
Klassepublic class UIComponentDescriptor
OverervingUIComponentDescriptor Inheritance ComponentDescriptor Inheritance Object

Taalversie: ActionScript 3.0
Productversie: Flex 3
Runtimeversies: Flash Player 9, AIR 1.1

A UIComponentDescriptor instance encapsulates the information that you specified in an MXML tag for an instance of a visual component.

Most of the tags in an MXML file describe a tree of UIComponent objects. For example, the <mx:Application> tag represents a UIComponent object, and its child containers and controls are all UIComponent objects.

The MXML compiler compiles each of these MXML tags into a UIComponentDescriptor instance. To be precise, the MXML compiler autogenerates an ActionScript data structure which is a tree of UIComponentDescriptor objects.

At runtime, the createComponentsFromDescriptors() method of the Container class uses the information in the UIComponentDescriptor objects in the container's childDescriptors array to create the actual UIComponent objects that are the container's children, plus deeper descendants as well. Depending on the value of the container's creationPolicy, property, the descendants might be created at application startup, when some part of the component is about to become visible, or when the application developer manually calls the createComponentsFromDescriptors() method.

You do not typically create UIComponentDescriptor instances yourself; you can access the ones that the MXML compiler autogenerates via the childDescriptors array of the Container class.

Verwante API-elementen



Openbare eigenschappen
 EigenschapGedefinieerd door
 Inheritedconstructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie.
Object
 Inheriteddocument : Object
A reference to the document Object in which the component is to be created.
ComponentDescriptor
  effects : Array
An Array containing the effects for the component, as specified in MXML.
UIComponentDescriptor
 Inheritedevents : Object
An Object containing name/value pairs for the component's event handlers, as specified in MXML.
ComponentDescriptor
 Inheritedid : String
The identifier for the component, as specified in MXML.
ComponentDescriptor
 Inheritedproperties : Object
[alleen-lezen] An Object containing name/value pairs for the component's properties, as specified in MXML.
ComponentDescriptor
 InheritedpropertiesFactory : Function
A Function that returns an Object containing name/value pairs for the component's properties, as specified in MXML.
ComponentDescriptor
  stylesFactory : Function
A Function that constructs an Object containing name/value pairs for the instance styles for the component, as specified in MXML.
UIComponentDescriptor
 Inheritedtype : Class
The Class of the component, as specified in MXML.
ComponentDescriptor
Openbare methoden
 MethodeGedefinieerd door
  
UIComponentDescriptor(descriptorProperties:Object)
Constructor.
UIComponentDescriptor
 Inherited
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd.
Object
 Inherited
Invalidates the cached properties property.
ComponentDescriptor
 Inherited
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven.
Object
 Inherited
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd.
Object
 Inherited
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in.
Object
 Inherited
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies.
Object
 Inherited
Returns the string "ComponentDescriptor_" plus the value of the id property.
ComponentDescriptor
 Inherited
Retourneert de primitieve waarde van het opgegeven object.
Object
Eigenschapdetails

effects

eigenschap
public var effects:Array

Taalversie: ActionScript 3.0
Productversie: Flex 3
Runtimeversies: Flash Player 9, AIR 1.1

An Array containing the effects for the component, as specified in MXML.

For example, if you write the following code:

	  <mx:TextInput showEffect="Fade" hideEffect="Fade"/>

The descriptor's effects property is the Array [ "showEffect", "hideEffect" ].

The effectsproperty is null if no MXML effects were specified for the component.

Note that the values of the effect attributes are not specified in this property. Instead, effects are treated like styles and therefore are include in the stylesFactory property. The effect Array simply keeps track of which styles in the stylesFactory are actually effects.

This property is used by the Container method createComponentsFromDescriptors() to register the effects with the EffectManager.

stylesFactory

eigenschap 
public var stylesFactory:Function

Taalversie: ActionScript 3.0
Productversie: Flex 3
Runtimeversies: Flash Player 9, AIR 1.1

A Function that constructs an Object containing name/value pairs for the instance styles for the component, as specified in MXML.

For example, if you write the following code:

	  <mx:TextInput borderColor="0x888888" color="0xDDDDDD"/>

Then the descriptors' stylesFactory property is the Function:

	  function():void { this.borderColor = 0x888888; this.color = 0xDDDDDD };

The stylesFactory property is null if no MXML styles were specified for the component instance.

Constructordetails

UIComponentDescriptor

()Constructor
public function UIComponentDescriptor(descriptorProperties:Object)

Taalversie: ActionScript 3.0
Productversie: Flex 3
Runtimeversies: Flash Player 9, AIR 1.1

Constructor.

Parameters
descriptorProperties:Object — An Object containing name/value pairs for the properties of the UIComponentDescriptor object, such as its type, id, propertiesFactory, events, stylesFactory, and effects.




[ X ]Waarom in het Engels?
Sommige inhoud van de Naslaggids voor ActionScript 3.0 staat in het Engels

Niet alle onderdelen van de Naslaggids voor ActionScript 3.0 zijn in alle talen vertaald. Wanneer een taalelement niet is vertaald, wordt het in het Engels weergegeven. Zo is de klasse ga.controls.HelpBox niet in elke taal vertaald. In de Nederlandse versie van de naslaggids wordt de klasse ga.controls.HelpBox bijvoorbeeld in het Engels weergegeven.