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); }
public void onClick$btnDelete() { Listitem item = getSelectedItem(); if (DeleteController.show(getSelectedValue())) { item.setSelected(false); item.setVisible(false); updateControls(); } }
int row = StrUtil.toInt(pcs[1]) - 1; setValue(col, row, StrUtil.strAppend(getValue(col, row), pcs[2], "; "), null); lstVitals.getItemAtIndex(row).setVisible(true);