Packagecom.flexicious.nestedtreedatagrid.caching
Classpublic class RendererCache
InheritanceRendererCache Inheritance Object

Class to keep renderes around... Each Cell in the grid, is a container UI component, and the actual renderer UI component The _dict object here holds a bucket for each container type/renderer type combination The _rendererFactories holds a map of each cell and the corresponding bucket key (FactoryKey) that was used to generate it, so we are able to put it back into the bucket that it came from. The idea is, there should always be only just as many things in memory as are currently visibule plus a little outside so we scroll smoothly...



Public Methods
 MethodDefined By
  
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
Constructor Detail
RendererCache()Constructor
public function RendererCache(grid:FlexDataGrid)



Parameters
grid:FlexDataGrid
Method Detail
popInstance()method
public function popInstance(factory:IFactory, subFactory:IFactory = null):Object

Returns 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)

Returns
Object
pushInstance()method 
public function pushInstance(instance:Object):void

Returns a previously created renderer into the bucket for reuse later.

Parameters

instance:Object