public boolean remove(Object o) { int index = indexOf(o); if (index >= 0) { remove(index); return true; } return false; }
@Override public void eventCallback(String eventName, String eventData) { String[] pcs = eventData.split("\\^"); AntiCoagRecord record = findRecord(pcs[0]); switch (Integer.parseInt(pcs[2])) { case 0: // add if (record == null) { refresh(); } break; case 1: // edit refresh(); break; case 2: // delete if (record != null) { model.remove(record); } break; } }
if (listData.get(0) == null) { System.out.println("removed null"); listData.remove(0);
public void onClick$btnEdit() { if (!btnEdit.isDisabled()) { AntiCoagRecord oldRecord = getSelectedValue(); AntiCoagRecord newRecord = AddEditController.show(oldRecord); if (newRecord != null) { model.remove(oldRecord); model.add(newRecord); } } }
model.remove(notification);