/** * Appends an item. * * <p> * Note: if live data is used ({@link #getModel} is not null), the returned * item might NOT be loaded yet. To ensure it is loaded, you have to invoke * {@link #renderItem}. */ public Listitem appendItem(String label, String value) { final Listitem item = new Listitem(label, value); item.applyProperties(); item.setParent(this); return item; }
private Listcell getCell(int col, int row) { Listitem item; while (row >= lstVitals.getItemCount()) { item = new Listitem(); item.setVisible(false); item.setParent(lstVitals); } item = lstVitals.getItemAtIndex(row); while (col >= item.getChildren().size()) { Listcell cell = new Listcell(""); cell.setParent(item); } return (Listcell) item.getChildren().get(col); }