Package org.zkoss.zul

Examples of org.zkoss.zul.Label


        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


    public void render(Listitem item, Object data) throws Exception {

      ApplicationNews applicationNews = (ApplicationNews) data;

      Listcell lc;
      Label lb;

      lc = new Listcell();
      lc.setStyle("text-align: left; padding-left: 3px;");
      lb = new Label();
      lb.setParent(lc);
      lb.setValue(ZksampleDateFormat.getDateFormater().format(applicationNews.getDate()));
      lc.setParent(item);

      lc = new Listcell();
      lc.setStyle("text-align: left; padding-left: 3px;");
      lb = new Label();
      lb.setParent(lc);
      lb.setValue(applicationNews.getText().toString());
      lc.setParent(item);

      item.setValue(data);
      // ComponentsCtrl.applyForward(item,
      // "onDoubleClick=onDoubleClicked");
View Full Code Here

  private void createPanel() {
    final Hbox box = new Hbox();

    this.addEventListener(Events.ON_CLICK, this.eventHrsOnChange);

    final Label label = new Label("This Product have no description.");
    box.appendChild(label);
    this.appendChild(box);
  }
View Full Code Here

  private void addBoxChild(Box box) {
    int nextCount = box.getChildren().size();
    Box child = new Box();
    child.setStyle("border: 1px solid blue");
    child.appendChild(new Label("Box-" + nextCount));
    box.appendChild(child);
    box.invalidate();
  }
View Full Code Here

    box.invalidate();
  }

  private void addLabelChild(Box box) {
    int nextCount = box.getChildren().size();
    Label child = new Label("Label-" + nextCount);
    child.setStyle("border: 1px solid blue");
    box.appendChild(child);
    box.invalidate();
  }
View Full Code Here

  private void addWindowChild(Box box) {
    int nextCount = box.getChildren().size();
    Window child = new Window();
    child.setBorder("normal");
    child.appendChild(new Label("Window-" + nextCount));
    box.appendChild(child);
    box.invalidate();
  }
View Full Code Here

    } else {

      div_chartArea.getChildren().clear();

      Label label = new Label();
      label.setValue("This customer have no data for showing in a chart!");

      label.setParent(div_chartArea);

    }
  }
View Full Code Here

    } else {

      div_chartArea.getChildren().clear();

      Label label = new Label();
      label.setValue("This customer have no data for showing in a chart!");

      label.setParent(div_chartArea);

    }
  }
View Full Code Here

    } else {

      div_chartArea.getChildren().clear();

      final Label label = new Label();
      label.setValue("This customer have no data for showing in a chart!");

      label.setParent(div_chartArea);

    }
  }
View Full Code Here

    } else {

      div_chartArea.getChildren().clear();

      Label label = new Label();
      label.setValue("This customer have no data for showing in a chart!");

      label.setParent(div_chartArea);

    }
  }
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.