Package org.zkoss.zul

Examples of org.zkoss.zul.Listcell


    @Inject
    UserGrupRepository userGrupRepository;

    @Override
    public void rendering(Listitem listitem, UserGrup grup, int i) throws Exception {
        new Listcell(StringUtil.nvl(grup.getNama())).setParent(listitem);
        new Listcell(StringUtil.nvl(grup.getKode())).setParent(listitem);
        new Listcell(StringUtil.nvl(grup.getKeterangan())).setParent(listitem);
        listitem.setValue(grup);
        //To change body of implemented methods use File | Settings | File Templates.
    }
View Full Code Here


        }
        return null;
    }

    public static void nomorDocListcellStyle(Listitem item, String uppperContent, String lowerContent) {
        Listcell lcNpa = new Listcell();
        lcNpa.setParent(item);
        Div dvNpa = new Div();
        dvNpa.setParent(lcNpa);
        Label lblNpaNomor = new Label(uppperContent);
        lblNpaNomor.setStyle("text-decoration:underline");
        lblNpaNomor.setParent(dvNpa);
View Full Code Here

    List<UnitOfMeasure> uoms=uomManager.searchByName(searchKey, 0L, 32);
    Iterator<UnitOfMeasure> uomIterator=uoms.iterator();
    while(uomIterator.hasNext()){
      UnitOfMeasure uom=uomIterator.next();
      Listitem item=new Listitem();
      Listcell nameCell=new Listcell(uom.getName());
      Listcell descCell=new Listcell(uom.getDescription().getShortDescription());
      item.appendChild(nameCell);
      item.appendChild(descCell);
      uomList.appendChild(item);
    }
    uomText.open();
View Full Code Here

  static class FileitemRenderer implements ListitemRenderer {
    SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd mm:ss");

    public void render(Listitem item, Object data) throws Exception {
      File file = (File) data;
      new Listcell(file.getName()).setParent(item);
      new Listcell(format.format(new Date(file.lastModified())))
          .setParent(item);
    }
View Full Code Here

    private void setupTaskStatusListbox() {
        for(TaskStatusEnum status : getTasksStatus()) {
            Listitem item = new Listitem();
            item.setParent(lbTaskStatus);
            item.setValue(status);
            item.appendChild(new Listcell(_(status.toString())));
            lbTaskStatus.appendChild(item);
            if(status.equals(TaskStatusEnum.ALL)) {
                item.setSelected(true);
            }
        }
View Full Code Here

        @Override
        public void render(Listitem item, Object data) {
            Order order = (Order) data;
            item.setValue(data);

            item.appendChild(new Listcell(order.getCode()));
            item.appendChild(new Listcell(order.getName()));
            Scenario scenario = source ? transferOrdersModel
                    .getSourceScenario() : transferOrdersModel
                    .getDestinationScenario();
            item.appendChild(new Listcell(transferOrdersModel.getVersion(order,
                    scenario)));

            if (source) {
                Listcell cell = new Listcell();
                cell.appendChild(getTransferButton(order));
                item.appendChild(cell);
            }
        }
View Full Code Here

            }
        }

        private void appendDayListcell(Listitem item,
                CalendarException calendarException) {
            Listcell listcell = new Listcell();
            listcell.appendChild(new Label(calendarException.getDate()
                    .toString()));
            item.appendChild(listcell);
        }
View Full Code Here

            item.appendChild(listcell);
        }

        private void appendStandardEffortListcell(Listitem item,
                Capacity capacity) {
            Listcell listcell = new Listcell();
            listcell.appendChild(new Label(
                    _(capacity.getStandardEffortString())));
            item.appendChild(listcell);
        }
View Full Code Here

                    _(capacity.getStandardEffortString())));
            item.appendChild(listcell);
        }

        private void appendExtraEffortListcell(Listitem item, Capacity capacity) {
            Listcell listcell = new Listcell();
            listcell.appendChild(new Label(_(capacity.getExtraEffortString())));
            item.appendChild(listcell);
        }
View Full Code Here

            item.appendChild(listcell);
        }

        private void appendExceptionTypeListcell(Listitem item,
                CalendarException calendarException) {
            Listcell listcell = new Listcell();
            String type = "";
            if (calendarException.getType() != null) {
                type = calendarException.getType().getName();
            }
            listcell.appendChild(new Label(type));
            item.appendChild(listcell);
        }
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.