Package de.forsthaus.backend.bean

Examples of de.forsthaus.backend.bean.DummyBean


      .getLogger(SecLoginlogStatisticTotalListModelItemRenderer.class);

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

    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);

    lc = new Listcell(dummyBean.getTotalCount().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);

    item.setAttribute("data", data);
    // ComponentsCtrl.applyForward(img, "onClick=onImageClicked");
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.bean.DummyBean

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.