X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-src%2Fclass%2Forg%2Fargeo%2Fria%2Fcomponents%2FIView.js;h=4607788ee2bff3e33f4f43d091dd523a9ae15e4d;hb=614cd339a65450805c1684af40bba14db6a8333f;hp=e4c8be677ee87adc789f1301078486e24df440e0;hpb=fbb37515d94515993468c998516fe8341189ef84;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IView.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IView.js index e4c8be677..4607788ee 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IView.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/components/IView.js @@ -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. * See {@link org.argeo.ria.event.CommandsManager#definitions} for the keys to use for defining commands. */ - commands : {} + commands : {}, + viewSelection : { + nullable:false, + check:"org.argeo.ria.components.ViewSelection" + }, + instanceId : {init:""}, + instanceLabel : {init:""} }, members : { @@ -27,19 +33,24 @@ qx.Interface.define("org.argeo.ria.components.IView", { * This is the role of the manager to actually add the graphical component to the pane, * so it's not necessary to do it here. * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager + * @param data {Mixed} Any object or data passed by the initiator of the view * @return {Boolean} */ - init : function(viewPane){return true;}, + init : function(viewPane, data){return true;}, /** * The implementation should contain the real data loading (i.o. query...) - * @param data {mixed} Any data in any format * @return {Boolean} */ - load : function(data){return true;}, + load : function(){return true;}, /** * Whether this component is already contained in a scroller (return false) or not (return true). * @return {Boolean} */ - addScroll : function(){return true;} + addScroll : function(){return true;}, + /** + * Called at destruction time + * Perform all the clean operations (stopping polling queries, etc.) + */ + close : function(){return true;} } }); \ No newline at end of file