]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/Applet.js
Remove debug instruction and commented code
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / Applet.js
index b23d072fc034119651ab70fe3d0862a5288f4832..4d43a12073153a92d02ff198a66b5a300d683b50 100644 (file)
@@ -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);
-               
+                               
        },
        
        /**