Package org.zkoss.zul

Examples of org.zkoss.zul.Listcell


    @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 Article article = (Article) data;

    Listcell lc = new Listcell(article.getArtNr());
    lc.setParent(item);
    lc = new Listcell(article.getArtKurzbezeichnung());
    lc.setParent(item);
    lc = new Listcell(article.getArtPreis().toString());
    lc.setStyle("text-align: right");
    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 Orderposition orderposition = (Orderposition) data;

    Listcell lc = new Listcell(String.valueOf(orderposition.getId()));
    lc.setParent(item);
    lc = new Listcell(orderposition.getArticle().getArtKurzbezeichnung());
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupMenge().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupEinzelwert().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupGesamtwert().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);

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

    });
    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());
        inputs.add(tb);
       
        tb.addEventListener(Events.ON_CHANGE, new EventListener() {
          public void onEvent(Event event) throws Exception {
            arg.setValue(tb.getValue());
            composeFormula();
            moveFocusToNext(tb);
            movedToNext = false;
          }
        });
        tb.addEventListener(Events.ON_FOCUS, new EventListener() {
          public void onEvent(Event event) throws Exception {
            ArgWrapper last = args.get(args.size() - 1);
            if (last.equals(arg) && info.isMultipleParameter()) {
              focusToIndex = args.size() - 1;
              args.add(createNextArg());
              argsListbox.setModel(newListModelInstance(args));
            } else {
              focusComponent = tb;
            }
           
            if (movedToNext == true && focusComponent != null)
              focusComponent.focus();
            movedToNext = false;
          }
        });
       
        Listcell cell = new Listcell();
        cell.appendChild(tb);
        item.appendChild(cell);
      }

      @Override
      public void render(Listitem item, Object data, int index)
View Full Code Here

    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()));
        item.appendChild(new Listcell(info.getFormatedImportDateString()));
        //TODO: use I18n
        item.addEventListener(Events.ON_DOUBLE_CLICK, new EventListener() {
          public void onEvent(Event evt) throws Exception {
            getDesktopWorkbenchContext().getWorkbookCtrl().openBook(info);
            getDesktopWorkbenchContext().fireWorkbookChanged();
View Full Code Here

    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()));
        item.appendChild(new Listcell(info.getFormatedImportDateString()));
        //TODO: use I18n
        item.setContext(fileMenu);
        item.addEventListener(Events.ON_DOUBLE_CLICK, new EventListener() {
         
          @Override
View Full Code Here

            while(rs.next()){
              //System.out.println("in rs.next");
              Listitem newListItem = new Listitem();
              Date date = rs.getDate("time");
              SimpleDateFormat sdf=new SimpleDateFormat("M/dd h");
              newListItem.appendChild(new Listcell(rs.getString("filename")));
              newListItem.appendChild(new Listcell(rs.getString("who")));
              newListItem.appendChild(new Listcell(String.valueOf(sdf.format(date))));
              listbox.appendChild(newListItem);
            }
            //close the jdbc connection
            stmt.close();
            con.close();
View Full Code Here

    @Inject
    PegawaiRepository pegawaiRepository;

    @Override
    public void rendering(Listitem listitem, Pegawai pegawai, int i) throws Exception {
        new Listcell(StringUtil.nvl(pegawai.getNama())).setParent(listitem);
        new Listcell(StringUtil.nvl(pegawai.getNip())).setParent(listitem);
        new Listcell(StringUtil.nvl(
                (pegawai.getPangkat() != null) ? pegawai.getPangkat().getNama() : null)
        ).setParent(listitem);
        new Listcell(StringUtil.nvl(
                (pegawai.getJabatan() != null) ? pegawai.getJabatan().getNama() : null)
        ).setParent(listitem);
        new Listcell(StringUtil.nvl(
                (pegawai.getUnit() != null) ? pegawai.getUnit().getNama() : null)
        ).setParent(listitem);
        //To change body of implemented methods use File | Settings | File Templates.
    }
View Full Code Here

    }

    @Override
    public void rendering(Listitem listitem, Unit unit, int i) throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.  ]
        new Listcell(unit.getKode()).setParent(listitem);
        new Listcell(unit.getNama()).setParent(listitem);
    }
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.