]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IPerspective.js
Implement perspective auto-detection and switching
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-src / class / org / argeo / ria / components / IPerspective.js
1 /**
2 * This interface defines the main methods of an application Perpective.
3 * See the org.argeo.ria package documentation for more info on how to build an Application
4 * with this framework.
5 *
6 * @author Charles du Jeu
7 */
8 qx.Interface.define("org.argeo.ria.components.IPerspective", {
9
10 statics : {
11 LABEL : "",
12 ICON : ""
13 },
14
15 members : {
16 /**
17 * Initialize the available zones that will later contain IView implementations.
18 * This method is <b>in charge</b> of your panel to the main application zone
19 * (just below the toolbar).
20 *
21 * @param viewsManager {org.argeo.components.ViewsManager} the pane manager
22 *
23 */
24 initViewPanes : function(viewsManager){return true;},
25 /**
26 * Once the zones are available and initialized, initialize the views here
27 * and add them to viewPanes. Trigger initial data loading, etc.
28 *
29 * @param viewsManager {org.argeo.components.ViewsManager} the pane manager
30 *
31 */
32 initViews : function(viewsManager){return true},
33 /**
34 * Remove and destroy the perspective
35 * @param viewsManager {org.argeo.components.ViewsManager} the pane manager
36 */
37 remove : function(viewsManager){return true}
38 }
39 });