Package org.zkoss.zul

Examples of org.zkoss.zul.ListitemRenderer


    this.listheader_Branch_No.setSortAscending(this.fcBraNr_Asc);
    this.listheader_Branch_No.setSortDescending(this.fcBraNr_Desc);
    this.listheader_Branch_Description.setSortAscending(this.fcBraBezeichnung_Asc);
    this.listheader_Branch_Description.setSortDescending(this.fcBraBezeichnung_Desc);

    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()));
View Full Code Here


        categoryCombobox.setSelectedIndex(0);
        initFunctionListbox();
      }
    });
   
    functionListbox.setItemRenderer(new ListitemRenderer() {
      public void render(Listitem item, Object data) throws Exception {
        FormulaMetaInfo info = (FormulaMetaInfo)data;
        item.setLabel(info.getFunction());
        item.setValue(info);
      }
View Full Code Here

    ListModelList model = (ListModelList) _filterListbox.getListModel();
    for(RowInfo rowInfo : selected) {
      model.addSelection(rowInfo);
    }
   
    _filterListbox.setItemRenderer(new ListitemRenderer() {
      public void render(Listitem item, Object data) throws Exception {
        RowInfo info = (RowInfo)data;
        item.setLabel(info.display);
      }
View Full Code Here

    composeFormulaTextbox.addEventListener(Events.ON_CHANGE, new EventListener() {
      public void onEvent(Event event) throws Exception {
        decomposeFormula();
      }
    });
    argsListbox.setItemRenderer(new ListitemRenderer() {
      public void render(Listitem item, Object data) throws Exception {
        final ArgWrapper arg = (ArgWrapper)data;
        item.setValue(arg);
        item.appendChild(new Listcell(arg.getName()));
        final Textbox tb = new Textbox(arg.getValue());
View Full Code Here

    Listheader dateHeader = new Listheader("Date");
    dateHeader.setHflex("1");
    dateHeader.setParent(listhead);
    filesListbox.appendChild(listhead);
   
    filesListbox.setItemRenderer(new ListitemRenderer() {
     
      public void render(Listitem item, Object obj) throws Exception {
        final SpreadSheetMetaInfo info = (SpreadSheetMetaInfo)obj;
        item.setValue(info);
        item.appendChild(new Listcell(info.getFileName()));
View Full Code Here

    Listheader dateHeader = new Listheader("Date");
    dateHeader.setHflex("1");
    dateHeader.setParent(listhead);
    allFilesListbox.appendChild(listhead);
   
    allFilesListbox.setItemRenderer(new ListitemRenderer() {
     
      public void render(Listitem item, Object obj) throws Exception {
        final SpreadSheetMetaInfo info = (SpreadSheetMetaInfo)obj;
        item.setValue(info);
        item.appendChild(new Listcell(info.getFileName()));
View Full Code Here

    public Set<String> getCurrencies() {
        return configurationModel.getCurrencies();
    }

    public ListitemRenderer getCurrencyRenderer() {
        return new ListitemRenderer() {
            @Override
            public void render(Listitem item, Object data) throws Exception {
                String currencyCode = (String) data;
                item.setLabel(currencyCode + " - "
                        + configurationModel.getCurrencySymbol(currencyCode));
View Full Code Here

    public List<PersonalTimesheetsPeriodicityEnum> getPersonalTimesheetsPeriodicities() {
        return Arrays.asList(PersonalTimesheetsPeriodicityEnum.values());
    }

    public ListitemRenderer getPersonalTimesheetsPeriodicityRenderer() {
        return new ListitemRenderer() {
            @Override
            public void render(Listitem item, Object data) throws Exception {
                PersonalTimesheetsPeriodicityEnum periodicity = (PersonalTimesheetsPeriodicityEnum) data;
                item.setLabel(_(periodicity.getName()));
                item.setValue(periodicity);
View Full Code Here

        return new String[] { "Name" };
    }

    @Override
    public ListitemRenderer getItemRenderer() {
        return new ListitemRenderer() {

            @Override
            public void render(Listitem item, Object data) {
                T template = type.cast(data);
                item.setValue(data);
View Full Code Here

        return aname.compareTo(bname);
      }
    });

    ListModel<File> listmodel = new ListModelList<File>(zuls);
    ListitemRenderer render = new ListitemRenderer<File>() {
      public void render(Listitem item, final File data, int index) {
        item.setValue(data);
        new Listcell(((File) data).getName()).setParent(item);
        item.addEventListener("onClick",
            new org.zkoss.zk.ui.event.EventListener() {
View Full Code Here

TOP

Related Classes of org.zkoss.zul.ListitemRenderer

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.