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%2Fevent%2FCommandsManager.js;h=8f0428076b95378e9a78d809d18ad4b33d99b971;hb=86f06959d772c750a516780b448d5cbfa16cd48e;hp=324a13cdf36afa2fb2749046291756e05bbf077a;hpb=ad79d5a27411e607bb29b7cfc275472e4f8be4f5;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/event/CommandsManager.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/event/CommandsManager.js index 324a13cdf..8f0428076 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/event/CommandsManager.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-src/class/org/argeo/ria/event/CommandsManager.js @@ -84,6 +84,9 @@ qx.Class.define("org.argeo.ria.event.CommandsManager", init : {}, check : "Map" }, + /** + * Special command definitions that are shared between focusable parts. + */ sharedDefinitions : { init: {}, check: "Map" @@ -105,6 +108,10 @@ qx.Class.define("org.argeo.ria.event.CommandsManager", members : { + /** + * Initialize the manager with basic definitions. + * @param initDefinitions {Map} A map of commands definitions. + */ init : function(initDefinitions){ this.setDefinitions(initDefinitions); this.setInitialDefinitions(qx.lang.Object.copy(initDefinitions)); @@ -284,7 +291,8 @@ qx.Class.define("org.argeo.ria.event.CommandsManager", /** * Add a new set of commands definitions. See the definitions property of this class. * @param definitions {Map} a set of commands definitions. - * @param callbackContext {qx.ui.core.Object} The context used inside the commands callbacks. + * @param callbackContext {qx.ui.core.Object} The context used inside the commands callbacks. + * @param focusablePartId {String} A string identifying the associated focusable part, like "view:viewId". */ addCommands : function(definitions, callbackContext, focusablePartId){ var crtDefs = this.getDefinitions(); @@ -309,6 +317,7 @@ qx.Class.define("org.argeo.ria.event.CommandsManager", /** * Removes a whole set of commands by their definitions maps. * @param definitions {Map} a set of commands definitions + * @param focusablePartId {String} A string identifying the associated focusable part, like "view:viewId". */ removeCommands : function(definitions, focusablePartId){ var crtDefs = this.getDefinitions();