Package org.zkoss.zul

Examples of org.zkoss.zul.Separator


    controlbox.setPack("stretch");
    controlbox.appendChild(leftbox);
    controlbox.appendChild(rightbox);

    appendChild(controlbox);
    appendChild(new Separator());
    appendChild(listbox);
  }
View Full Code Here


    pb.setParent(this.tableChildrenButtons);

    this.panelChildren_Buttons = new Panelchildren();
    this.panelChildren_Buttons.setParent(pb);

    final Separator sep = new Separator();
    sep.setParent(divCt);
    final Separator sep2 = new Separator();
    sep2.setParent(divCt);

    final Div divFooter = new Div();
    divFooter.setAlign("center");
    divFooter.setParent(this.bl_south);
View Full Code Here

   * @param bkgrColor
   * @return
   */
  private Separator createNewSeparator(Component parent, String orientation, boolean isBarVisible, String spacing, String bkgrColor) {

    final Separator sep = new Separator();

    sep.setOrient(orientation);
    sep.setBar(isBarVisible);

    if (!StringUtils.trim(bkgrColor).isEmpty()) {
      sep.setStyle("background-color:" + bkgrColor);
    }

    if (StringUtils.isEmpty(spacing)) {
      sep.setSpacing(0 + "px");
    } else {
      sep.setSpacing(spacing + "px");
    }

    sep.setParent(parent);

    return sep;
  }
View Full Code Here

    Label label = new Label();
    label.setValue(question);
    label.setParent(vbox);

    Separator sp = new Separator();
    sp.setBar(true);
    sp.setParent(vbox);

    Hbox hbox = new Hbox();
    hbox.setParent(vbox);

    Separator sep = new Separator();
    sep.setParent(hbox);

    textbox.setType("password");
    textbox.setWidth("100px");
    textbox.setParent(hbox);
View Full Code Here

    // hbox.setParent(this);
    // Checkbox cb = new Checkbox();
    // cb.setLabel(Labels.getLabel("common.All"));
    // cb.setChecked(true);

    Separator sp = new Separator();
    sp.setParent(this);

    textbox.setWidth("98%");
    textbox.setHeight("80px");
    textbox.setMultiline(true);
    textbox.setRows(5);
    textbox.setParent(this);

    Separator sp2 = new Separator();
    sp2.setBar(true);
    sp2.setParent(this);

    Button btnSend = new Button();
    btnSend.setLabel(Labels.getLabel("common.Send"));
    btnSend.setParent(this);
    btnSend.addEventListener("onClick", new EventListener() {
View Full Code Here

    final String path = "/images/countrycode_flags/";
    final String flag = StringUtils.lowerCase(dummyBean.getCountry()) + ".gif";
    img.setSrc(path + flag);
    hbox.appendChild(img);

    final Separator sep = new Separator();
    hbox.appendChild(sep);

    /* Country */
    final Label label = new Label();
    label.setValue(dummyBean.getCountry());
View Full Code Here

        final String path = "/images/countrycode_flags/";
        final String flag = StringUtils.lowerCase(cc.getCcdCode2()) + ".gif";
        img.setSrc(path + flag);
        hbox.appendChild(img);

        final Separator sep = new Separator();
        hbox.appendChild(sep);

        /* Country */
        final Label label = new Label();
        label.setValue(cc.getCcdCode2());
View Full Code Here

    Div divSouth = new Div();
    divSouth.setWidth("100%");
    divSouth.setHeight("100%");
    divSouth.setParent(south);

    Separator sep = new Separator();
    sep.setBar(true);
    sep.setOrient("horizontal");
    sep.setParent(divSouth);

    // Button
    Button btnOK = new Button();
    btnOK.setStyle("padding-left: 5px");
    btnOK.setLabel("OK");
View Full Code Here

    // +
    // "','','top=100,left=200,height=600,width=800,scrollbars=1,resizable=1')");
    // }
    // });

    Separator separator = createSeparator(false);
    separator.setWidth("97%");
    separator.setStyle("background-color: " + bgColorInner);
    separator.setBar(false);
    separator.setParent(gb);

    separator = createSeparator(false);
    separator.setWidth("97%");
    separator.setBar(true);
    separator.setParent(gb);

    // ++++++++++++++++++++++++++++++++++++++++++++++++++++++//

    // the menuTree
    mainMenuTree = new Tree();
    // tree.setSizedByContent(true);
    // tree.setZclass("z-dottree");
    mainMenuTree.setStyle("overflow:auto; border: none;");
    mainMenuTree.setParent(gb);

    final Treechildren treechildren = new Treechildren();
    mainMenuTree.appendChild(treechildren);

    // generate the treeMenu from the menuXMLFile
    // ZkossTreeMenuFactory.addMainMenu(treechildren);
    getTreeMainMenuFactory().addMenu(treechildren);

    final Separator sep1 = new Separator();
    sep1.setWidth("97%");
    sep1.setBar(false);
    sep1.setParent(gb);

    /* as standard, call the dashboard page */
    showPage("/WEB-INF/pages/dashboard.zul", "menu_Item_Home", Labels.getLabel("menu_Item_Home"));
  }
View Full Code Here

   *            false = without Bar <br>
   * @return
   */
  private static Separator createSeparator(boolean withBar) {

    final Separator sep = new Separator();
    sep.setStyle("backgound-color: " + bgColorInner);
    sep.setBar(withBar);

    return sep;
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Separator

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.