| Pakket | mx.charts.chartClasses |
| Klasse | public class InstanceCache |
| Overerving | InstanceCache Object |
| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
![]() | constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 [alleen-schrijven]
The position of the instance in the parent's child list. | InstanceCache | ||
| instances : Array [alleen-lezen]
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 | ||
| Methode | Gedefinieerd door | ||
|---|---|---|---|
InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)
Constructor. | InstanceCache | ||
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
count | eigenschap |
creationCallback | eigenschap |
public var creationCallback:Function| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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 | eigenschap |
public var discard:Boolean = false| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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 | eigenschap |
factory:IFactory| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
Implementatie
public function get factory():IFactory public function set factory(value:IFactory):voidformat | eigenschap |
format:flash.text:TextFormat| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
Implementatie
public function get format():flash.text:TextFormat public function set format(value:flash.text:TextFormat):voidhide | eigenschap |
public var hide:Boolean = true| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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 | eigenschap |
instances | eigenschap |
instances:Array [alleen-lezen] | Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
Implementatie
public function get instances():Arrayproperties | eigenschap |
properties:Object| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
Implementatie
public function get properties():Object public function set properties(value:Object):voidremove | eigenschap |
public var remove:Boolean = false| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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 | () | Constructor |
public function InstanceCache(type:Object, parent:Object = null, insertPosition:int = -1, moduleFactory:IFlexModuleFactory = null)| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructor.
Parameterstype: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:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven