| Pacote | mx.charts.chartClasses |
| Classe | public class InstanceCache |
| Herança | InstanceCache Object |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
| count : int
The number of items currently required in the cache. | InstanceCache | ||
| creationCallback : Function
A callback invoked when new instances are created. | InstanceCache | ||
| discard : Boolean = false
Determines if unneeded instances are discarded. | InstanceCache | ||
| factory : IFactory
A factory that generates the type of object to cache. | InstanceCache | ||
| format : flash.text:TextFormat
A TextFormat to apply to any instances created. | InstanceCache | ||
| hide : Boolean = true
Determines if unneeded instances should be hidden. | InstanceCache | ||
| insertPosition : int [somente gravação]
The position of the instance in the parent's child list. | InstanceCache | ||
| instances : Array [somente leitura]
The Array of cached instances. | InstanceCache | ||
| properties : Object
A hashmap of properties to assign to new instances. | InstanceCache | ||
| remove : Boolean = false
Determines if unneeded instances should be removed from their parent. | InstanceCache | ||
| Método | Definido por | ||
|---|---|---|---|
InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)
Constructor. | InstanceCache | ||
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
count | propriedade |
creationCallback | propriedade |
public var creationCallback:Function| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A callback invoked when new instances are created. This callback has the following signature:
function creationCallback(newInstance:Object, cache:InstanceCache):void;
discard | propriedade |
public var discard:Boolean = false| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances are discarded.
If set to true, extra elements are discarded
when the cache count is reduced.
Otherwise, extra elements are kept in a separate cache
and reused when the count is increased.
factory | propriedade |
factory:IFactory| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A factory that generates the type of object to cache. Assigning to this discards all current instances and recreate new instances of the correct type.
Implementação
public function get factory():IFactory public function set factory(value:IFactory):voidformat | propriedade |
format:flash.text:TextFormat| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A TextFormat to apply to any instances created. If set, this format is applied as the current and default format for the contents of any instances created. This property is only relevant if the factory generates TextField instances.
Implementação
public function get format():flash.text:TextFormat public function set format(value:flash.text:TextFormat):voidhide | propriedade |
public var hide:Boolean = true| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances should be hidden.
If true, the visible property
is set to false on each extra element
when the cache count is reduced, and set to true
when the count is increased.
This property is only relevant when the factory
generates DisplayObjects.
Setting this property to true for other factory types
generates a run-time error.
insertPosition | propriedade |
instances | propriedade |
instances:Array [somente leitura] | Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The Array of cached instances.
There may be more instances in this Array than currently requested.
You should rely on the count property
of the instance cache rather than the length of this Array.
Implementação
public function get instances():Arrayproperties | propriedade |
properties:Object| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A hashmap of properties to assign to new instances. Each key/value pair in this hashmap is assigned to each new instance created. The property hashmap is assigned to any existing instances when set.
The values in the hashmap are not cloned; object values are shared by all instances.
Implementação
public function get properties():Object public function set properties(value:Object):voidremove | propriedade |
public var remove:Boolean = false| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Determines if unneeded instances should be removed from their parent.
If true, the removeChild() method
is called on the parent for each extra element
when the cache count is reduced.
This property is only relevant when the factory
generates DisplayObjects.
Setting this property to true for other factory types
generates a run-time error.
InstanceCache | () | Construtor |
public function InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Parâmetrostype:Object — The type of object to construct.
This can be either a Class or an IFactory.
| |
parent:Object (default = null) — An optional DisplayObject to add new instances to.
| |
insertPosition:int (default = -1) — Where in the parent's child list
to insert instances. Set to -1 to add the children to the end of the child list.
| |
moduleFactory:IFlexModuleFactory (default = null) — The context for using embedded fonts and for
finding the style manager that controls the styles for this component.
|
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas