},
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;
}
}
}
+ */
}
}
},
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()));
}
},
- /**
- * 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;
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);
-
+
},
/**