Package org.zkoss.zul

Examples of org.zkoss.zul.Center


   */
  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


  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

      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
         */
        Executions.createComponents(zulFilePathName, center, null);
      }
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);
    ct.setParent(bl);
    final Div divCt = new Div();
    divCt.setParent(ct);

    this.tableLayout = new Tablelayout();
    this.tableLayout.setColumns(3);
View Full Code Here

      });

      // ------ 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

    // 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);

    // Module dependend
    Calendar calendar = new Calendar();
    calendar.setId("cal");
    calendar.setStyle("border: none;");
View Full Code Here

    // 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);

    anIFrame = new Iframe();
    anIFrame.setHeight("100%");
    anIFrame.setWidth("100%");
    anIFrame.setScrolling(getScrolling());
View Full Code Here

    // 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);

    anIFrame = new Iframe();
    anIFrame.setHeight("100%");
    anIFrame.setWidth("100%");
    anIFrame.setScrolling(getScrolling());
View Full Code Here

    // 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);

    Div container = new Div();
    container.setStyle("padding: 4px;");
    ct.appendChild(container);

    Script init = new Script();
    init.setContent("function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'af'}, '" + container.getUuid() + "'); };");
    win.appendChild(init);
View Full Code Here

    Borderlayout bl = new Borderlayout();
    bl.setHeight("100%");
    bl.setWidth("100%");
    bl.setParent(this);

    Center center = new Center();
    center.setFlex(true);
    center.setParent(bl);

    South south = new South();
    south.setHeight("26px");
    south.setParent(bl);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Center

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.