Package org.zkoss.zul

Examples of org.zkoss.zul.Window.detach()


    });
    cancel.setParent(w);
    cancel.addEventListener(Events.ON_CLICK,
        new EventListener() {
      public void onEvent(Event e) throws Exception {
        w.detach();
      }
    });
    t.focus();
    w.doModal();
  }
View Full Code Here


      win = (Window) Executions.createComponents("/WEB-INF/pages/customer/customerDialog.zul", null, map);
    } catch (final Exception e) {
      e.printStackTrace();
      ZksampleMessageUtils.showErrorMessage(e.toString());
      if (win != null) {
        win.detach();
      }
    }
  }

  /**
 
View Full Code Here

    namevar.setSheetIndex(sheetindex);
    CellRangeAddress cra = new CellRangeAddress(top, bottom, left, right);
    namevar.setRefersToFormula(cra.formatAsString());
   
    Window rangeAddWin = (Window) Path.getComponent("//p1/rangeAddWin");
    rangeAddWin.detach();
  }

  // dummy
  public void onRangeDelete() {
    final Book book = spreadsheet.getBook();
View Full Code Here

        book.removeName(rangeName);
      }

      Window rangeDeleteWin = (Window) Path
          .getComponent("//p1/rangeDeleteWin");
      rangeDeleteWin.detach();
    } catch (Exception e) {
      e.printStackTrace();
    }

  }
View Full Code Here

        spreadsheet.setSelection(rect);
      }

      Window rangeChooseWin = (Window) Path
          .getComponent("//p1/rangeChooseWin");
      rangeChooseWin.detach();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    });
    cancel.setParent(w);
    cancel.addEventListener(Events.ON_CLICK,
        new EventListener() {
      public void onEvent(Event e) throws Exception {
        w.detach();
      }
    });
    t.focus();
    w.doModal();
  }
View Full Code Here

        Button printButton = (Button) printProperties.getFellow("printButton");
        printButton.addEventListener(Events.ON_CLICK, new EventListener() {
            @Override
            public void onEvent(Event event) {
                printProperties.detach();
                configuration.print(buildParameters(printProperties),planner);
            }
        });
        printButton.setParent(printProperties);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.