Package org.zkoss.zul

Examples of org.zkoss.zul.Borderlayout


   * Creates the MainMenu as TreeMenu as default. <br>
   */
  private void createMainTreeMenu(Event event) {

    // get an instance of the borderlayout defined in the index.zul-file
    Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");

    // get an instance of the searched west layout area
    West west = bl.getWest();
    west.setFlex(true);
    // clear the WEST child comps
    west.getChildren().clear();

    HashMap<String, Object> map = new HashMap<String, Object>();
View Full Code Here


   *
   * @throws InterruptedException
   */
  public void showWelcomePage() throws InterruptedException {
    // get an instance of the borderlayout defined in the zul-file
    Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
    // get an instance of the searched CENTER layout area
    Center center = bl.getCenter();
    // clear the center child comps
    center.getChildren().clear();
    // call the zul-file and put it in the center layout area
    Executions.createComponents("/WEB-INF/pages/welcome.zul", center, null);
  }
View Full Code Here

   * @throws InterruptedException
   */
  public void onClick$btnAbout(Event event) throws IOException, InterruptedException {

    /* get an instance of the borderlayout defined in the zul-file */
    Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
    /* get an instance of the searched CENTER layout area */
    Center center = bl.getCenter();

    Executions.createComponents("/WEB-INF/pages/about/aboutZksample2.zul", null, null);
  }
View Full Code Here

      final int workWithTabs = 1;

      if (workWithTabs == 1) {

        /* get an instance of the borderlayout defined in the zul-file */
        Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        Center center = bl.getCenter();
        // get the tabs component
        Tabs tabs = (Tabs) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter");

        /**
         * Check if the tab is already opened than select them and<br>
         * go out of here. If not than create them.<br>
         */

        Tab checkTab = null;
        try {
          // checkTab = (Tab) tabs.getFellow(tabName);
          checkTab = (Tab) tabs.getFellow("tab_" + tabName.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

        if (checkTab == null) {

          Tab tab = new Tab();
          tab.setId("tab_" + tabName.trim());
          tab.setLabel(tabName.trim());
          tab.setClosable(true);

          tab.setParent(tabs);

          Tabpanels tabpanels = (Tabpanels) center.getFellow("divCenter").getFellow("tabBoxIndexCenter").getFellow("tabsIndexCenter").getFellow("tabpanelsBoxIndexCenter");
          Tabpanel tabpanel = new Tabpanel();
          tabpanel.setHeight("100%");
          tabpanel.setStyle("padding: 0px;");
          tabpanel.setParent(tabpanels);

          /**
           * Create the page and put it in the tabs area. If zul-file
           * is not found, detach the created tab
           */
          try {
            Executions.createComponents(zulFilePathName, tabpanel, null);
            tab.setSelected(true);
          } catch (final Exception e) {
            tab.detach();
          }

        }
      } else {
        /* get an instance of the borderlayout defined in the zul-file */
        Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        Center center = bl.getCenter();
        /* clear the center child comps */
        center.getChildren().clear();
        /**
         * create the page and put it in the center layout area
         */
 
View Full Code Here

    /*
     * Borderlayout around the grid for make it scrollable to see all table
     * records if the browser window are to small.
     */
    final Borderlayout bl = new Borderlayout();
    bl.setParent(div);
    final Center ct = new Center();
    ct.setAutoscroll(true);
    ct.setStyle("background-color: #EBEBEB");
    ct.setBorder("none");
    ct.setFlex(true);
View Full Code Here

          msgWindow = null;
        }
      });

      // ------ added borderlayout --------
      Borderlayout blayout = new Borderlayout();

      Center center = new Center();
      center.setFlex(true);
      center.setBorder("none");
      center.setAutoscroll(true);

      Textbox tb = new Textbox();
      tb.setId("tb");
      tb.setMultiline(true);
      tb.setReadonly(true);
      // tb.setRows(17);
      // tb.setWidth("98%");

      tb.setParent(center);
      center.setParent(blayout);
      blayout.setParent(msgWindow);

      /**
       * set the bottom of the msgWindow, so that we can see and reach the
       * messageBar buttons.
       */
 
View Full Code Here

    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    // body
    Borderlayout bl = new Borderlayout();
    bl.setHeight(getModulHeight() + "px");
    bl.setParent(plc);
    Center ct = new Center();
    ct.setSclass("FDCenterNoBorder");
    ct.setStyle("background-color: white");
    ct.setParent(bl);
View Full Code Here

    cap.setLabel(title);
    cap.setStyle("padding: 0px;");
    cap.setParent(gb);

    // body
    Borderlayout bl = new Borderlayout();
    bl.setHeight(getModulHeight() + "px");
    bl.setParent(gb);
    Center ct = new Center();
    ct.setSclass("FDCenterNoBorder");
    ct.setStyle("background-color: white");
    ct.setParent(bl);
View Full Code Here

    cap.setLabel("Translator");
    cap.setStyle("padding: 0px;");
    cap.setParent(gb);

    // body
    Borderlayout bl = new Borderlayout();
    bl.setHeight(getModulHeight() + "px");
    bl.setParent(gb);
    Center ct = new Center();
    ct.setSclass("FDCenterNoBorder");
    ct.setStyle("background-color: white");
    ct.setParent(bl);
View Full Code Here

   *
   * @param event
   */
  public void doViewInFullScreen(Event event) {

    final Borderlayout bl = ((Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain"));
    final West west = bl.getWest();

    if (west != null) {
      try {
        if (west.isOpen()) {
          west.setOpen(false);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Borderlayout

Copyright © 2018 www.massapicom. 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.