套件 | mx.core |
類別 | public class ContextualClassFactory |
繼承 | ContextualClassFactory ClassFactory Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | 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 |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | ContextualClassFactory | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
newInstance():* [覆寫]
Creates a new instance of the generator class,
with the properties specified by properties. | ContextualClassFactory | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
moduleFactory | 屬性 |
public var moduleFactory:IFlexModuleFactory
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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
.
預設值為 null。
ContextualClassFactory | () | 建構函式 |
public function ContextualClassFactory(generator:Class = null, moduleFactory:IFlexModuleFactory = null)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數generator: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 | () | 方法 |
override public function newInstance():*
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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, 03:47 PM Z