Package org.zkoss.zul

Examples of org.zkoss.zul.Button


      paging.setPageSize(getPageSize());
      paging.setParent(vbox);
      paging.addEventListener("onPaging", new OnPagingEventListener());

      // Button
      Button btnOK = new Button();
      btnOK.setLabel("OK");
      btnOK.addEventListener("onClick", new OnCloseListener());
      btnOK.setParent(vbox);

      // set the Model by filling with DB data
      // listbox.setModel(new
      // ListModelList(getYoutubeLinkService().getAllYoutubeLinks()));
View Full Code Here


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

    if (isTimerControl()) {
      Button btnTimer = new Button();
      btnTimer.setId("btnTimer");
      btnTimer.setSclass("oT_ButtonForPanelWithIcon");
      btnTimer.setImage("/images/icons/clock1_16x16.gif");

      // convert to seconds
      int seconds = (int) Math.round(getDelay() / 1000);

      if (seconds > 60) {
        // convert to minutes and set localization to minutes
        int minutes = (int) Math.round((getDelay() / 1000) / 60);
        btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + minutes + " " + Labels.getLabel("common.Minutes"));
      } else
        // set localization to seconds
        btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + seconds + " " + Labels.getLabel("common.Seconds"));

      btnTimer.addEventListener("onClick", new BtnClickListener());
      btnTimer.setParent(hboxSameButtonsHeight);
    }
    Button btnRefresh = new Button();
    btnRefresh.setId("btnSelectYoutubeSong");
    btnRefresh.setSclass("oT_ButtonForPanelWithIcon");
    btnRefresh.setImage("/images/icons/refresh_green_16x16.gif");
    btnRefresh.setTooltiptext(Labels.getLabel("btnRefresh.tooltiptext"));
    btnRefresh.addEventListener("onClick", new BtnClickListener());
    btnRefresh.setParent(hboxSameButtonsHeight);
    // END Buttons Toolbar/Timer

    // body
    Borderlayout bl = new Borderlayout();
    bl.setHeight(getModulHeight() + "px");
View Full Code Here

    South south = new South();
    south.setHeight("26px");
    south.setParent(bl);

    // OK Button
    Button btnOK = new Button();
    btnOK.setLabel("OK");
    btnOK.addEventListener("onClick", new OnCloseListener());
    btnOK.setParent(south);

    Div divCenter = new Div();
    divCenter.setWidth("100%");
    divCenter.setHeight("100%");
    divCenter.setParent(center);
View Full Code Here

    }
  }

  private void addButtonChild(Box box) {
    int nextCount = box.getChildren().size();
    Button child = new Button("Button" + nextCount);
    box.appendChild(child);
    box.invalidate();
  }
View Full Code Here

    this._textbox = new Textbox();
    this._textbox.setWidth("100%");
    this._textbox.setMaxlength(20);
    this._textbox.setParent(hbox);
    // serachButton
    this._searchButton = new Button();
    this._searchButton.setImage("/images/icons/search.gif");
    this._searchButton.addEventListener("onClick", new OnSearchListener());
    this._searchButton.setParent(hbox);

    South south = new South();
    south.setBorder("none");
    south.setHeight("30px");
    south.setParent(bl);

    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");
    btnOK.addEventListener("onClick", new OnCloseListener());
    btnOK.setParent(divSouth);

    /**
     * init the model.<br>
     * The ResultObject is a helper class that holds the generic list and
     * the totalRecord count as int value.
View Full Code Here

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

    if (isTimerControl()) {
      Button btnTimer = new Button();
      btnTimer.setId("btnTimer");
      btnTimer.setSclass("oT_ButtonForPanelWithIcon");
      btnTimer.setImage("/images/icons/clock1_16x16.gif");

      // convert to seconds
      int seconds = (int) Math.round(getDelay() / 1000);

      if (seconds > 60) {
        // convert to minutes and set localization to minutes
        int minutes = (int) Math.round((getDelay() / 1000) / 60);
        btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + minutes + " " + Labels.getLabel("common.Minutes"));
      } else
        // set localization to seconds
        btnTimer.setTooltiptext(Labels.getLabel("btnTimer.tooltiptext") + " " + seconds + " " + Labels.getLabel("common.Seconds"));

      btnTimer.addEventListener("onClick", new BtnClickListener());
      btnTimer.setParent(hboxSameButtonsHeight);
    }

    Button btnRefresh = new Button();
    btnRefresh.setId("btnRefresh");
    btnRefresh.setSclass("oT_ButtonForPanelWithIcon");
    btnRefresh.setImage("/images/icons/refresh_green_16x16.gif");
    btnRefresh.setTooltiptext(Labels.getLabel("btnRefresh.tooltiptext"));
    btnRefresh.addEventListener("onClick", new BtnClickListener());
    btnRefresh.setParent(hboxSameButtonsHeight);

    // body
    Borderlayout bl = new Borderlayout();
    bl.setHeight(getModulHeight() + "px");
    bl.setParent(plc);
View Full Code Here

  }
 
  private void setLinkType(Button btn) {
    activeBtn = btn;
    for (Iterator<Button> iter = linkTypeBtns.keySet().iterator(); iter.hasNext();) {
      Button b = iter.next();
      //set selected button disable
      b.setDisabled( Objects.equals(btn, b) );
    }
    content.setSrc( linkTypeBtns.get(btn) );
   
    if (!isCellHasDisplayString)
      displayHyperlink.setValue("");
View Full Code Here

    String printKey=""+System.currentTimeMillis();
    Session session=this.getDesktop().getSession();
    session.setAttribute("zssFromHi"+printKey,spreadsheet);

    Window win = (Window) getFellow("menuPrintWin");
    Button printBtn=(Button) win.getFellow("printBtn");
    printBtn.setTarget("_blank");
    printBtn.setHref("print.zul?printKey="+printKey);

    win.setPosition("parent");
    win.setTop("30px");
    win.setLeft("5px");
    win.doPopup();
View Full Code Here

          Comboitem item=new Comboitem(replacement.getName());
          replacingBox.appendChild(item);
        }


        Button okButton=new Button("OK");
        okButton.addEventListener("onClick", new EventListener(){

          public void onEvent(Event event) throws Exception {
            OrganizationGroup comp=organizationGroupManager.findByName(groupsCombo.getText()).get(0);
            if(nameBox.getText().equals("")){
              Messagebox.show("Name is empty!", "Error", Messagebox.YES , null);
View Full Code Here

    List<Warehouse> replacements=manager.findAll();
    for (Warehouse replacement : replacements) {
      Comboitem item=new Comboitem(replacement.getName());
      replacingBox.appendChild(item);
    }
    Button okButton=new Button("OK");
    okButton.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
        Warehouse w =new Warehouse();
        w.setName(nameBox.getText());
        BaseDescription odesc=new BaseDescription();
        w.setDescription(odesc);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Button

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.