Package org.zkoss.zul

Examples of org.zkoss.zul.Label


    public void run() {
      try {
        while (_desktop.getAttribute("sp.ceased") == null) {
          Executions.activate(_desktop);
          try {
            _info.appendChild(new Label("Comet received"));
            _desktop.enableServerPush(false);
          } finally {
            Executions.deactivate(_desktop);
          }
          Threads.sleep(500);
View Full Code Here


* Used to test F36-2314655
* @author tomyeh
*/
public class F2314655_2 implements org.zkoss.zk.ui.util.Composer {
  public void doAfterCompose(Component comp) {
    new Label("second,").setParent(comp);
  }
View Full Code Here

  public WorkingThread2(Desktop desktop, List result) {
    _desktop = desktop;
    _result = result;
  }
  public void run() {
    _result.add(new Label("Execute "+ ++_cnt));
  }
View Full Code Here

  public WorkingThread(Desktop desktop) {
    _desktop = desktop;
  }
  public void run() {
    _label = new Label("Execute "+ ++_cnt);
    synchronized (_mutex) {
      Executions.notify(_desktop, _mutex);
    }
  }
View Full Code Here

      Div div = new Div();
      Image icon = new Image();
      icon.setStyle("padding: 0px 10px");
      icon.setSrc("/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png");
      div.appendChild(icon);
      new Label(ary[0]).setParent(div);
      row.appendChild(div);
      new Label(ary[1]).setParent(row);
      new Label(ary[2]).setParent(row);
      new Label(ary[3]).setParent(row);
    } else {
      new Label(data.toString()).setParent(row);
    }
       
  }
View Full Code Here

            fileNameTextbox.setText(serverFileName);

        }


        Label formatLable = (Label) getFellow("format");
        formatLable.setValue(media.getFormat());

        if (media.isBinary()) {
            Files.copy(new File(serverFileName), media.getStreamData());
        } else {
            BufferedWriter writer = new BufferedWriter(new FileWriter(serverFileName));
View Full Code Here

        typeCB.setSelectedItem(this.getSelectedIndex(typeCB, form.getModelType()));

        Textbox fileNameTextbox = (Textbox) this.getFellow("fileNameTextbox");
        fileNameTextbox.setText(form.getModelFileName());

        Label formatLable = (Label) getFellow("format");
        formatLable.setValue(form.getModelFileExtension());
    }
View Full Code Here

        String modelType = typeCb.getSelectedItem().getValue().toString();

        Textbox fileNameTextbox = (Textbox) this.getFellow("fileNameTextbox");
        String modelFileName = fileNameTextbox.getText();

        Label formatLabel = (Label) getFellow("format");
        String modelFileExtension = formatLabel.getValue();

        buildingDocForm.setBuilding(building);
        buildingDocForm.setSystemType(systemType);
        buildingDocForm.setModelType(modelType);
        if (!modelFileName.equals(buildingDocForm.getModelFileName())) {
View Full Code Here

    return cell;
  }
  /** Returns the label for the cell generated by the default renderer.
   */
  private static Label newRenderLabel(String value) {
    final Label label =
      new Label(value != null && value.length() > 0 ? value: " ");
    label.setPre(true); //to make sure   is generated, and then occupies some space
    return label;
  }
View Full Code Here

    }

    private void objToSubview(DutyForm form) {
        DutyForm obj = form;

        Label userNameLB = (Label) getFellow("userName");
        userNameLB.setValue(user.getUserName());

        Listbox authListbox = (Listbox) getFellow("auth");
        Iterator authItr = authListbox.getItems().iterator();
        while (authItr.hasNext()) {
            Listitem item = (Listitem) authItr.next();
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Label

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.