예제 #1
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());
   }
 }
예제 #2
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);
   }
 }