]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IPerspective.js
move "source" to "argeo-ria-src"
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-src / class / org / argeo / ria / components / IPerspective.js
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IPerspective.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IPerspective.js
new file mode 100644 (file)
index 0000000..88d3e87
--- /dev/null
@@ -0,0 +1,29 @@
+/**\r
+ * This interface defines the main methods of an application Perpective.\r
+ * See the org.argeo.ria package documentation for more info on how to build an Application\r
+ * with this framework. \r
+ * \r
+ * @author Charles du Jeu\r
+ */\r
+qx.Interface.define("org.argeo.ria.components.IPerspective", {\r
+       \r
+       members : {\r
+               /**\r
+                * Initialize the available zones that will later contain IView implementations.\r
+                * This method is <b>in charge</b> of your panel to the main application zone \r
+                * (just below the toolbar).\r
+                * \r
+                * @param viewsManager {org.argeo.components.ViewsManager} the pane manager\r
+                * \r
+                */\r
+               initViewPanes : function(viewsManager){return true;},\r
+               /**\r
+                * Once the zones are available and initialized, initialize the views here\r
+                * and add them to viewPanes. Trigger initial data loading, etc.\r
+                * \r
+                * @param viewsManager {org.argeo.components.ViewsManager} the pane manager\r
+                * \r
+                */\r
+               initViews : function(viewsManager){return true}\r
+       }\r
+});
\ No newline at end of file