Package org.zkoss.zul

Examples of org.zkoss.zul.Listbox.appendChild()


  throws javax.servlet.ServletException, java.io.IOException {
    final Desktop desktop = getDesktop(request);
    Bridge bridge = Bridge.start(getServletContext(), request, response, desktop);
    try {
      final Listbox listbox = (Listbox) ((Page)desktop.getPages().iterator().next()).getRoots().iterator().next();
      listbox.appendChild(new Listitem("Ajax " + ++cnt));
      response.getWriter().write(bridge.getResult());
    } finally {
      bridge.close();
    }
  }
View Full Code Here


              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

      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();
  }

  public void init(){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.