X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2FApplet.js;h=4d43a12073153a92d02ff198a66b5a300d683b50;hb=57f3f674573109ece71b4424e92a71acc12dff92;hp=b23d072fc034119651ab70fe3d0862a5288f4832;hpb=a67cbae800900c1baab3d1eba0ea2b25b9b636a5;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/Applet.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/Applet.js index b23d072fc..4d43a1207 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/Applet.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/Applet.js @@ -54,11 +54,24 @@ qx.Class.define("org.argeo.slc.ria.Applet", }, command : null - }, + } + /*, + "copytocollection" : { + shared : true, + selectionChange : function(viewId, xmlNode){ + if(viewId != "applet") return; + if(!xmlNode){ + this.setEnabled(false); + }else{ + this.setEnabled(true); + } + } + }, "deletetest" : { shared : true, callback : function(e){ - alert("Should delete applet selection" + this.getInstanceId()); + //this.debug(this); + alert("Should delete applet selection in " + this.getInstanceId()); }, selectionChange : function(viewId, xmlNode){ if(viewId != "applet") return; @@ -69,16 +82,13 @@ qx.Class.define("org.argeo.slc.ria.Applet", } } } + */ } } }, members : { - /** - * Called at applet creation. Just registers viewPane. - * @param viewPane {org.argeo.ria.components.ViewPane} The viewPane. - */ init : function(viewPane, xmlNode){ this.setView(viewPane); this.setViewSelection(new org.argeo.ria.components.ViewSelection(viewPane.getViewId())); @@ -90,10 +100,6 @@ qx.Class.define("org.argeo.slc.ria.Applet", } }, - /** - * Load a given test : the data passed must be an XML node containing the test unique ID. - * @param xmlNode {Element} The text xml description. - */ load : function(){ if(!this.data) return; if(this.loaded) return; @@ -232,11 +238,12 @@ qx.Class.define("org.argeo.slc.ria.Applet", if(nodes.length){ viewSelection.addNode(nodes[0]); } + this.getView().focus(); }, this); var contextMenu = org.argeo.ria.event.CommandsManager.getInstance().createMenuFromIds(["close"]); this.tree.setContextMenu(contextMenu); - + }, /**