Package org.zkoss.zul

Examples of org.zkoss.zul.Borderlayout


    this.setTitle(_title);
    this.setVisible(true);
    this.setClosable(true);

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

    Center center = new Center();
    center.setFlex(true);
    center.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

    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

    btnRefresh.setTooltiptext(Labels.getLabel("btnSelectYoutubeSong.tooltiptext"));
    btnRefresh.addEventListener("onClick", new BtnClickListener());
    btnRefresh.setParent(hboxSameButtonsHeight);

    // 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.setFlex(true);
    ct.setParent(bl);
View Full Code Here

      this.setTitle(_title);
      this.setVisible(true);
      this.setClosable(true);

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

      Center center = new Center();
      center.setFlex(true);
      center.setParent(bl);
View Full Code Here

    btnRefresh.addEventListener("onClick", new BtnClickListener());
    btnRefresh.setParent(hboxSameButtonsHeight);
    // END Buttons Toolbar/Timer

    // 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.setFlex(true);
View Full Code Here

      final int workWithTabs = 1;

      if (workWithTabs == 1) {

        /* get an instance of the borderlayout defined in the zul-file */
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        /* get an instance of the searched CENTER layout area */
        final Center center = bl.getCenter();
        // get the tabs component
        final 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_" + tabID.trim());
          checkTab.setSelected(true);
        } catch (final ComponentNotFoundException ex) {
          // Ignore if can not get tab.
        }

        if (checkTab == null) {

          final Tab tab = new Tab();
          tab.setId("tab_" + tabID.trim());

          if (tabLabel != null) {
            tab.setLabel(tabLabel.trim());
          } else {
            tab.setLabel(tabLabel.trim());
          }
          tab.setClosable(true);
          tab.setParent(tabs);

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

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

    final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
    cb.setChecked(false);
    UserWorkspace.getInstance().setTreeMenu(false);

    // get an instance of the borderlayout defined in the index.zul-file
    final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
    // get an instance of the searched west layout area
    final West west = bl.getWest();
    west.setVisible(false);

    final North north = bl.getNorth();
    north.setHeight(north.getHeight() + "px");

    final Div div = (Div) north.getFellow("divDropDownMenu");

    final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
    menuBar.setVisible(true);

    // generate the menu from the menuXMLFile
    getDropDownMenuFactory().addMenu(menuBar);

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        // get an instance of the searched west layout area
        final West west = bl.getWest();
        west.setVisible(true);

        final North north = bl.getNorth();

        final Div div = (Div) north.getFellow("divDropDownMenu");

        final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
        menuBar.getChildren().clear();
View Full Code Here

    this.setTitle(this._title);
    this.setVisible(true);
    this.setClosable(true);

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

    Center center = new Center();
    center.setFlex(true);
    center.setParent(bl);
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.