Package org.zkoss.zul

Examples of org.zkoss.zul.Listcell


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

    final SecRole role = (SecRole) data;

    Listcell lc = new Listcell(String.valueOf(role.getId()));
    lc.setParent(item);
    lc = new Listcell(role.getRolShortdescription());
    lc.setParent(item);

    item.setAttribute("data", data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClicked");

  }
View Full Code Here


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

    final Language language = (Language) data;

    final Listcell lc = new Listcell(language.getLanText());
    lc.setParent(item);

    item.setAttribute("data", data);

  }
View Full Code Here

    }

    for (Listitem listitem : li) {

      Listcell lc = (Listcell) listitem.getFirstChild();
      Checkbox cb = (Checkbox) lc.getFirstChild();

      if (cb != null) {

        if (cb.isChecked() == true) {
View Full Code Here

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

    final SecGroup group = (SecGroup) data;

    Listcell lc = new Listcell();
    final Checkbox cb = new Checkbox();

    // get the role for which we pull the data
    final SecRole role = this.parentController.getSelected();

    //
    if (role != null) {
      if (getSecurityService().isGroupInRole(group, role)) {
        cb.setChecked(true);
      } else {
        cb.setChecked(false);
      }
    } else {
      cb.setChecked(false);
    }

    lc.appendChild(cb);
    lc.setParent(item);

    lc = new Listcell(group.getGrpShortdescription());
    lc.setParent(item);

    // lc = new Listcell();
    // Image img = new Image();
    // img.setSrc("/images/icons/page_detail.gif");
    // lc.appendChild(img);
View Full Code Here

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

    final SecUser user = (SecUser) data;

    Listcell lc;
    lc = new Listcell(user.getUsrLoginname());
    lc.setParent(item);
    lc = new Listcell(user.getUsrLastname());
    lc.setParent(item);
    lc = new Listcell(user.getUsrEmail());
    lc.setParent(item);

    lc = new Listcell();
    Checkbox cb = new Checkbox();
    cb.setChecked(user.isUsrEnabled());
    cb.setDisabled(true);
    lc.appendChild(cb);
    lc.setParent(item);

    lc = new Listcell();
    cb = new Checkbox();
    cb.setChecked(user.isUsrAccountnonexpired());
    cb.setDisabled(true);
    lc.appendChild(cb);
    lc.setParent(item);

    lc = new Listcell();
    cb = new Checkbox();
    cb.setChecked(user.isUsrCredentialsnonexpired());
    cb.setDisabled(true);
    lc.appendChild(cb);
    lc.setParent(item);

    lc = new Listcell();
    cb = new Checkbox();
    cb.setChecked(user.isUsrAccountnonlocked());
    cb.setDisabled(true);
    lc.appendChild(cb);
    lc.setParent(item);

    // lc = new Listcell();
    // Image img = new Image();
    // img.setSrc("/images/icons/page_detail.gif");
    // lc.appendChild(img);
View Full Code Here

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

      Branche branche = (Branche) data;

      Listcell lc = new Listcell(branche.getBraBezeichnung());
      lc.setParent(item);

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

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

    final Branche branche = (Branche) data;

    final Listcell lc = new Listcell(branche.getBraBezeichnung());
    lc.setParent(item);

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

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

    final Order order = (Order) data;

    Listcell lc = new Listcell(order.getAufNr());
    lc.setParent(item);
    lc = new Listcell(order.getAufBezeichnung());
    lc.setParent(item);

    // lc = new Listcell();
    // Image img = new Image();
    // img.setSrc("/images/icons/page_detail.gif");
    // lc.appendChild(img);
View Full Code Here

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

    final Customer customer = (Customer) data;

    Listcell lc = new Listcell(customer.getKunNr());
    lc.setParent(item);
    lc = new Listcell(customer.getKunMatchcode());
    lc.setParent(item);
    lc = new Listcell(customer.getKunName1());
    lc.setParent(item);
    lc = new Listcell(customer.getKunOrt());
    lc.setParent(item);

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

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

    final Customer customer = (Customer) data;

    Listcell lc = new Listcell(customer.getKunNr());
    lc.setParent(item);
    lc = new Listcell(customer.getKunMatchcode());
    lc.setParent(item);
    lc = new Listcell(customer.getKunName1());
    lc.setParent(item);
    lc = new Listcell(customer.getKunName2());
    lc.setParent(item);
    lc = new Listcell(customer.getKunOrt());
    lc.setParent(item);
    ComponentsCtrl.applyForward(lc, "onMouseOver=onMouseOverListCell");

    lc = new Listcell();
    final Checkbox cb = new Checkbox();
    cb.setDisabled(true);
    cb.setChecked(customer.getKunMahnsperre());
    lc.appendChild(cb);
    lc.setParent(item);

    item.setAttribute("data", data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onCustomerItemDoubleClicked");

  }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listcell

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.