Esempio n. 1
0
 private ObjectItemGui() {
   sv = ServiceFactory.getLocalService();
   // sv = ServiceFactory.getSOAP_Service("http://pk86.de:8004/bitdemo.wsdl");
   // sv = ServiceFactory.getSpringService();
   // sv = ServiceFactory.getSOAP_Service("http://localhost:8004/bf.wsdl");
   GuiFactory fact = GuiFactory.getInstance();
   GuiUtil.setUiManager("Nimbus");
   try {
     GuiWindow win = fact.createWindow("gui/Expression.xml");
     win.setController(this);
     win.show();
   } catch (Exception ex) {
     logger.error(ex.getMessage(), ex);
     GuiUtil.showEx(ex);
   }
 }
Esempio n. 2
0
 public void editExpr(GuiUserEvent event) {
   GuiWindow win;
   try {
     win = GuiFactory.getInstance().createWindow("gui/Expression.xml");
     win.setController(this);
     win.show();
   } catch (GDLParseException ex) {
     logger.error(ex.getMessage(), ex);
     GuiUtil.showMessage(event.window, "Error", "Error", ex.getMessage());
   }
 }
Esempio n. 3
0
 public void showResultChanged(GuiUserEvent event) {
   if (((GuiChangeEvent) event).bValue) {
     try {
       showResult(event);
     } catch (Exception ex) {
       logger.error(ex.getMessage(), ex);
       GuiUtil.showMessage(event.window, "Error", "Error", ex.getMessage());
     }
   } else {
     event.window.setValue("memResult", null);
   }
 }
Esempio n. 4
0
 // Expression
 public void ee_execute(GuiUserEvent event) {
   String exp = (String) event.window.getValue("memExpr");
   long start = System.currentTimeMillis();
   try {
     ExpressionResult res = sv.execute(exp);
     event.window.setValue("size", res.resultsetSize);
     long end2 = System.currentTimeMillis();
     long duraTotal = end2 - start;
     String sd = res.duraDB1 + "/" + res.duraAlg + "/" + res.duraDB2 + " " + duraTotal;
     event.window.setValue("exeTime", sd);
     this.displayPage(event, res.firstPage, res.trace);
   } catch (Exception ex) {
     GuiUtil.showEx(ex);
   }
 }