| Package | com.flexicious.nestedtreedatagrid.caching |
| Class | public class RendererCache |
| Inheritance | RendererCache Object |
| Method | Defined By | ||
|---|---|---|---|
RendererCache(grid:FlexDataGrid) | RendererCache | ||
popInstance(factory:IFactory, subFactory:IFactory = null):Object
Returns an instance of the specified factory/subfactory combination from the cache, if once exists. | RendererCache | ||
pushInstance(instance:Object):void
Returns a previously created renderer into the bucket for reuse later. | RendererCache | ||
| RendererCache | () | Constructor |
| popInstance | () | method |
public function popInstance(factory:IFactory, subFactory:IFactory = null):ObjectReturns an instance of the specified factory/subfactory combination from the cache, if once exists. Else, instantiates a new instance, and stores the factory key that was used to create it.
Parameters
factory:IFactory | |
subFactory:IFactory (default = null) |
Object —
|
| pushInstance | () | method |
public function pushInstance(instance:Object):voidReturns a previously created renderer into the bucket for reuse later.
Parameters
instance:Object |