X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-src%2Fclass%2Forg%2Fargeo%2Fria%2Fcomponents%2FIView.js;h=e4c8be677ee87adc789f1301078486e24df440e0;hb=78d566f3265acbf80ccc158c01377b49ecac3492;hp=3d3cd1aa3797aa7b3514a98e4b99369af1ecdfc5;hpb=a10c083ba5bde2d7ebb466153c99858247ddb0aa;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 3d3cd1aa3..e4c8be677 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 @@ -1,6 +1,8 @@ /** * Interface for a standard 'view' of an argeo RIA. A view is an independant applet that * will be integrated inside a ViewPane. + * If this view is to implement a selection (a list, a tree, etc) that will trigger changes on commands, + * it must trigger a viewSelection#changeSelection event. * * The typical lifecycle of an IView will be the following : *
+ init(viewPane) : initialize basic GUI in the viewPane @@ -12,12 +14,18 @@ qx.Interface.define("org.argeo.ria.components.IView", { properties : { + /** + * 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 : {} }, members : { /** * The implementation should contain the GUI initialisation. + * 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 * @return {Boolean} */ @@ -29,8 +37,7 @@ qx.Interface.define("org.argeo.ria.components.IView", { */ load : function(data){return true;}, /** - * Whether this component is already contained in a scroller - * (return false) or not (return true). + * Whether this component is already contained in a scroller (return false) or not (return true). * @return {Boolean} */ addScroll : function(){return true;}