Paket | mx.core |
Klass | public class ContextualClassFactory |
Arv | ContextualClassFactory ClassFactory Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
generator : Class
The Class that the newInstance() method uses
to generate objects from this factory object. | ClassFactory | ||
moduleFactory : IFlexModuleFactory
The context in which an object should be created. | ContextualClassFactory | ||
properties : Object = null
An Object whose name/value pairs specify the properties to be set
on each object generated by the newInstance() method. | ClassFactory |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | ContextualClassFactory | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
newInstance():* [åsidosätt]
Creates a new instance of the generator class,
with the properties specified by properties. | ContextualClassFactory | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
moduleFactory | egenskap |
public var moduleFactory:IFlexModuleFactory
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The context in which an object should be created.
This is used to solve using the embedded fonts in an application SWF
when the framework is loaded as an RSL
(the RSL has its own SWF context).
Embedded fonts may only be accessed from the SWF file context
in which they were created.
By using the systemManager
of the application SWF,
the RSL can create objects in the application SWF context
that will have access to the application's embedded fonts.
moduleFactory
will call create()
to create
an object in the context of the moduleFactory
.
Standardvärdet är null.
ContextualClassFactory | () | Konstruktor |
public function ContextualClassFactory(generator:Class = null, moduleFactory:IFlexModuleFactory = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrargenerator:Class (default = null ) — The Class that the newInstance() method
uses to generate objects from this factory object.
| |
moduleFactory:IFlexModuleFactory (default = null ) — The system manager context in which the object
should be created.
|
newInstance | () | metod |
override public function newInstance():*
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Creates a new instance of the generator
class,
with the properties specified by properties
.
This method implements the newInstance()
method
of the IFactory interface.
* — The new instance that was created.
|
Tue Jun 12 2018, 01:40 PM Z