Class AC.tree.grid.WidgetManager
A hash table for persisting widgets which have been instantiated (aka treegrid.objectManager).
Defined in: Utility.js.
Constructor Attributes | Constructor Name and Description |
---|---|
AC.tree.grid.WidgetManager(factory)
Default constructor.
|
Field Attributes | Field Name and Description |
---|---|
A hashmap that will be used to hold the widgets that have been created.
|
Method Attributes | Method Name and Description |
---|---|
destroy()
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.