Package org.zkoss.zul

Examples of org.zkoss.zul.Hbox


      public void onEvent(Event event) throws Exception {
        printTable();
      }
    });

    leftbox = new Hbox();
    leftbox.setStyle("float:left;");
    leftbox.appendChild(createButton);

    rightbox = new Hbox();
    rightbox.setStyle("float:right;");
    rightbox.appendChild(searchBox);
    rightbox.appendChild(exportButton);
    rightbox.appendChild(printButton);

    controlbox = new Hbox();
    controlbox.setWidth("100%");
    controlbox.setPack("stretch");
    controlbox.appendChild(leftbox);
    controlbox.appendChild(rightbox);
View Full Code Here


            item.setParent(serviceCB);
        }
    }

    private void initOperationChoice() {
        Hbox hbox = (Hbox) getFellow("OperCheck");


        List operationChoices = ParaCache.getInstance().getByCatalogue("pri.Fun.operations");
        Iterator it = operationChoices.iterator();
        while (it.hasNext()) {
View Full Code Here

    Space space;

    winUserBar.setBorder("none");

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

    userLabel = new Label();
    userLabel.setStyle("text-align: right; font-size: 10px;");
    userLabel.setParent(hbox);
    userLabelText = new Label();
View Full Code Here

    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");
View Full Code Here

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
    toolbarRight.setStyle("float:right; border-style: none;");
    toolbarRight.setParent(hbox);

    // body
View Full Code Here

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
    toolbarRight.setStyle("float:right; border-style: none;");
    toolbarRight.setParent(hbox);

    Hbox hboxSameButtonsHeight = new Hbox();
    hboxSameButtonsHeight.setPack("center");
    hboxSameButtonsHeight.setParent(toolbarRight);

    Button btnRefresh = new Button();
    btnRefresh.setId("btnSelectYoutubeSong");
    btnRefresh.setSclass("oT_ButtonForPanelWithIcon");
    btnRefresh.setImage("/images/icons/play-music_16x16.png");
View Full Code Here

    final DummyBean dummyBean = (DummyBean) data;

    Listcell lc;

    lc = new Listcell();
    final Hbox hbox = new Hbox();
    hbox.setParent(lc);

    /* Flag-image */
    final Image img = new Image();
    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());
    hbox.appendChild(label);
    lc.setParent(item);

    lc = new Listcell(dummyBean.getCountryName());
    lc.setParent(item);

View Full Code Here

      vbox = new Vbox();
      vbox.setStyle("padding: 0px;");
      vbox.setParent(popup);
      // clear old stuff
      vbox.getChildren().clear();
      titleBox = new Hbox();
      titleBox.setHeight("15px");
      titleBox.setWidth("100%");
      titleBox.setStyle("background-color: red;");
      titleBox.setParent(vbox);

      popLabel = new Label();
      popLabel.setParent(titleBox);
      popLabel.setValue("Customer Details");
      popLabel.setStyle("color: white; ");

    } else {
      // clear old stuff
      vbox.getChildren().clear();
      titleBox = new Hbox();
      titleBox.setHeight("15px");
      titleBox.setWidth("100%");
      titleBox.setStyle("background-color: red;");
      titleBox.setParent(vbox);
      popLabel = new Label();
View Full Code Here

    final String currentIp = log.getLglIp();
    final Ip2Country ip2 = log.getIp2Country();

    if (ip2 != null) {
      lc = new Listcell();
      final Hbox hbox = new Hbox();
      hbox.setParent(lc);

      // Fill with the related data for CountryCode
      final CountryCode cc = ip2.getCountryCode();
      if (cc != null) {
        /* Flag-image */
        final Image img = new Image();
        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());
        hbox.appendChild(label);

        // show other stuff from the Ip2Country
        /* Provider-City */
        final Label label2 = new Label();
        if (StringUtils.isNotBlank(ip2.getI2cCity())) {
          label2.setValue("(" + ip2.getI2cCity() + ")");
        } else {
          label2.setValue("");
        }

        hbox.appendChild(label2);
      }

      lc.setParent(item);

    } else {
      lc = new Listcell();
      final Hbox hbox = new Hbox();
      hbox.setParent(lc);

      /* Flag-image */
      final Image img = new Image();
      final String path = "/images/countrycode_flags/";
      final String flag = "xx.gif";
      img.setSrc(path + flag);
      hbox.appendChild(img);
      final Label label = new Label();
      label.setValue("Unknown");
      hbox.appendChild(label);

      lc.setParent(item);

    }

View Full Code Here

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
    toolbarRight.setStyle("float:right; border-style: none;");
    toolbarRight.setParent(hbox);

    Hbox hboxSameButtonsHeight = new Hbox();
    hboxSameButtonsHeight.setPack("center");
    hboxSameButtonsHeight.setParent(toolbarRight);

    if (isTimerControl()) {
      Button btnTimer = new Button();
      btnTimer.setId("btnTimer");
      btnTimer.setSclass("oT_ButtonForPanelWithIcon");
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Hbox

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.