Class Index | File Index

Classes


Class AC.tree.grid.WidgetManager

A hash table for persisting widgets which have been instantiated (aka treegrid.objectManager).
Defined in: Utility.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Default constructor.
Field Summary
Field Attributes Field Name and Description
 
A hashmap that will be used to hold the widgets that have been created.
Method Summary
Method Attributes Method Name and Description
 
Destroys this class and destroys every widget contained by this class.
 
destroyEach(widget)
Destroys the widget.
 
getIdKey(arrayOfSuperiors)
Get a unique id based on the given superiors for storing and retrieving the widget in a hashtable.
 
getWidgetForRelationship(arrayOfSuperiors, treegrid, config)
Get a Widget for the given relationship/s.
Class Detail
AC.tree.grid.WidgetManager(factory)
Default constructor.
Parameters:
factory
the factory that will be used to create the widget if one does not already exist. The factory must have a method with the signature getWidget(AC.tree.grid.Superior[]).
Field Detail
{Ext.util.MixedCollection} hashMap
A hashmap that will be used to hold the widgets that have been created.
Method Detail
destroy()
Destroys this class and destroys every widget contained by this class.
Returns:
void

destroyEach(widget)
Destroys the widget. This method is called for every widget in the hashtable upon destroy of this hash table.
Parameters:
widget
the widget to be destroyed
Returns:
void

getIdKey(arrayOfSuperiors)
Get a unique id based on the given superiors for storing and retrieving the widget in a hashtable.
Parameters:
arrayOfSuperiors
an array of AC.tree.grid.Superior objects which are the superiors for the contribution which is represented by the widget that we are looking for.
Returns:
a unique string id

getWidgetForRelationship(arrayOfSuperiors, treegrid, config)
Get a Widget for the given relationship/s.
Parameters:
arrayOfSuperiors
an array of AC.tree.grid.Superior objects which are the superiors for the contribution which is represented by the widget that we are looking for.
treegrid
config
Returns:
the widget for the given superior combination.

Documentation generated by JsDoc Toolkit 2.0.0 on Sun Sep 23 2012 02:46:07 GMT-0500 (CDT)