Exemplo n.º 1
0
 /**
  * @deprecated schrittweise nicht mehr unterstützen
  * @param event
  */
 public void execute(GuiUserEvent event) {
   String itemname = (String) event.window.getValue("listItems");
   String oper = (String) event.window.getValue("oper");
   if (oper == null) oper = "0";
   int iOper = Integer.parseInt(oper);
   long start = System.currentTimeMillis();
   int cnt = sv.performOper(sessionId, itemname, Selection.toOper(iOper));
   long end = System.currentTimeMillis();
   event.window.setValue("exeTime", end - start);
   event.window.setValue("size", Integer.toString(cnt));
   String newItem = sOper[iOper] + " " + itemname;
   GuiList list = (GuiList) event.window.getGuiMember("listHistory");
   list.addItem(newItem);
   if (Convert.toBoolean(event.window.getValue("show"))) {
     showResult(event);
   }
 }
Exemplo n.º 2
0
 public void startTrans(GuiUserEvent event) {
   Selection sel = sv.startSession();
   this.sessionId = sel.getSessionId();
 }