]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/ViewsManager.js
API DOCUMENTATION
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-src / class / org / argeo / ria / components / ViewsManager.js
index 6ac3f2efab485b7e2ef2e3d238e835dd5afaba4d..225bc693bca4ee9b6d7b28d1657eb5c3b5dbfe21 100644 (file)
@@ -19,6 +19,9 @@ qx.Class.define("org.argeo.ria.components.ViewsManager",
         * The main container for the org.argeo.ria.components.ViewPane instances. \r
         */\r
        viewPanesContainer : {init: null},\r
+       /**\r
+        * Keeps the currently focused viewPane. \r
+        */\r
        currentFocus : {init :null}\r
   },\r
   construct : function(){\r
@@ -31,6 +34,7 @@ qx.Class.define("org.argeo.ria.components.ViewsManager",
         * \r
         * @param classObj {Clazz} The class object to instantiate\r
         * @param viewPaneId {String} The unique ID of the view pane\r
+        * @param data {Mixed} Any data provided by the opener.\r
         * @return {org.argeo.ria.components.IView}\r
         */\r
        initIViewClass: function(classObj, viewPaneId, data){\r
@@ -68,6 +72,10 @@ qx.Class.define("org.argeo.ria.components.ViewsManager",
                        this.setViewPaneFocus(e.getTarget());\r
                }, this);\r
        },\r
+       /**\r
+        * Sets a given viewPane as the currently focused one. Blur the others.\r
+        * @param viewPane {org.argeo.ria.components.ViewPane} The viewPane (or TabbedViewPane) to focus on.\r
+        */\r
        setViewPaneFocus : function(viewPane){\r
                for(var key in this.views){\r
                        this.views[key].blur();\r