Unanswered: Orthogonality of Ext.app.Controller MVC accessor methods
Unanswered: Orthogonality of Ext.app.Controller MVC accessor methods
I'm looking at the reference documentation for Ext.app.Controller. There is a method getView(String name) but there is no method to query a controller for all it's views nor is there a way to add a view to controller or remove one. There is also no way to get the Application instance for a given controller. Why is that? The same applies for models, controllers and stores as it does views.
I would think that Controller would have these methods (or something similar). Please explain to me why it should or should not have these methods.
getApplication()
Returns application associated with this controller
getViews()
Returns list of all views associated with this controller
addView(Ext.base view)
Adds a view to this controller
removeView(Ext.base view)
Removes a view from this controller
getModels()
Returns list of all models associated with this controller
addModel(Ext.data.Model)
Adds a model to this controller
removeModel(Ext.data.Model)
Removes a model from this controller
getStores()
Returns list of all models associated with this controller
addStore(Ext.data.AbstractStore)
Adds a store to this controller
removeStore(Ext.data.AbstractStore)
Removes a store from this controller