Package org.zkoss.zul

Examples of org.zkoss.zul.Listcell


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

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


    List<Listitem> li = this.listBoxSecRolegroup.getItems();

    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

    this.listBoxBranch.setItemRenderer(new ListitemRenderer() {
      @Override
      public void render(Listitem item, Object data) throws Exception {
        final Branche branche = (Branche) data;
        Listcell lc;
        lc = new Listcell(String.valueOf(branche.getBraBezeichnung()));
        lc.setStyle("text-align: left; padding-left: 5px;");
        lc.setParent(item);
        lc = new Listcell(String.valueOf(branche.getId()));
        lc.setStyle("text-align: left; padding-left: 5px;");
        lc.setParent(item);
      }
    });

    this.pagedListWrapperBranche.init(so, this.listBoxBranch, this.pagingBranch);
View Full Code Here

        final Listitem lstItem = (Listitem) item;
        for (final Object cell : lstItem.getChildren()) {
          logger.debug("cell :" + cell);
          // CHILDREN COUNT is ALWAYS 1
          if (cell instanceof Listcell) {
            final Listcell listcell = (Listcell) cell;

            logger.debug("cell :" + listcell.getLabel());
            for (final Object innercell : listcell.getChildren()) {
              // NEVER GET HERE
              if (innercell instanceof Checkbox) {
                logger.debug("InnerCell = Checkbox");
                ((Checkbox) innercell).setDisabled(false);
              }
View Full Code Here

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

    final SecTyp typ = (SecTyp) data;

    final Listcell lc = new Listcell(typ.getStpTypname());
    lc.setParent(item);

    item.setAttribute("data", data);
  }
View Full Code Here

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

    final SecRight right = (SecRight) data;
    Listcell lc;

    lc = new Listcell(right.getRigName());
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

    final SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());

    lc = new Listcell(String.valueOf(typ.getStpTypname()));
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

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

  }
View Full Code Here

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

    final SecGroup group = (SecGroup) data;

    Listcell lc;

    lc = new Listcell(group.getGrpShortdescription());
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

    lc = new Listcell(group.getGrpLongdescription());
    lc.setStyle("padding-left: 5px");
    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 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(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 SearchOperators searchOp = (SearchOperators) data;

    final Listcell lc = new Listcell(searchOp.getSearchOperatorSign());
    lc.setParent(item);

    item.setAttribute("data", data);
  }
View Full Code Here

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

    final SecRole role = (SecRole) data;

    Listcell lc;

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

    // lc = new Listcell();
    // Image img = new Image();
    // img.setSrc("/images/icons/page_detail.gif");
    // lc.appendChild(img);
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.