| Paket | mx.core |
| Sınıf | public class DeferredInstanceFromFunction |
| Miras Alma | DeferredInstanceFromFunction Object |
| Uygular | ITransientDeferredInstance |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
getInstance() method to
create an instance of an object when it is first needed and get
a reference to the object thereafter.
İlgili API Öğeleri
Genel Yöntemler
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | DeferredInstanceFromFunction | ||
Returns a reference to an instance of the desired object. | DeferredInstanceFromFunction | ||
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
Resets the state of our factory to the initial, uninitialized state. | DeferredInstanceFromFunction | ||
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
Yapıcı Ayrıntı
DeferredInstanceFromFunction | () | Yapıcı |
public function DeferredInstanceFromFunction(generator:Function, destructor:Function = null)| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrelergenerator:Function — A function that creates and returns an instance
of the required object.
| |
destructor:Function (default = null) — An optional function used to cleanup outstanding
references when reset() is called.
|
Yöntem Ayrıntısı
getInstance | () | yöntem |
public function getInstance():Object| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns a reference to an instance of the desired object.
If no instance of the required object exists, calls the function
specified in this class' generator constructor parameter.
Object — An instance of the object.
|
reset | () | yöntem |
public function reset():void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 4 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Resets the state of our factory to the initial, uninitialized state. The reference to our cached instance is cleared.
Tue Jun 12 2018, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster