]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IView.js
Cosmetics (set label Rich)
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-src / class / org / argeo / ria / components / IView.js
index e4c8be677ee87adc789f1301078486e24df440e0..6fe9bcbbb803e494ca09d3db2bed43bfb4c8b534 100644 (file)
@@ -18,7 +18,13 @@ qx.Interface.define("org.argeo.ria.components.IView", {
                 * The commands definition Map that will be automatically added and wired to the menubar and toolbar.\r
                 * See {@link org.argeo.ria.event.CommandsManager#definitions} for the keys to use for defining commands.\r
                 */\r
-               commands : {}\r
+               commands : {},\r
+               viewSelection : {\r
+                       nullable:false, \r
+                       check:"org.argeo.ria.components.ViewSelection"\r
+               },\r
+               instanceId : {init:""},\r
+               instanceLabel : {init:""}\r
        },\r
        \r
        members : {\r
@@ -29,7 +35,7 @@ qx.Interface.define("org.argeo.ria.components.IView", {
                 * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager\r
                 * @return {Boolean}\r
                 */\r
-               init : function(viewPane){return true;},\r
+               init : function(viewPane, data){return true;},\r
                /**\r
                 * The implementation should contain the real data loading (i.o. query...)\r
                 * @param data {mixed} Any data in any format\r
@@ -40,6 +46,11 @@ qx.Interface.define("org.argeo.ria.components.IView", {
                 * Whether this component is already contained in a scroller (return false) or not (return true).\r
                 * @return {Boolean}\r
                 */\r
-               addScroll : function(){return true;}\r
+               addScroll : function(){return true;},\r
+               /**\r
+                * Called at destruction time\r
+                * Perform all the clean operations (stopping polling queries, etc.) \r
+                */\r
+               close : function(){return true;}\r
        }\r
 });
\ No newline at end of file