public void insertToTable(int index, ExtSource object) { list.add(index, object); oracle.add(object.getName()); oracle.add(renameContent(object.getType())); dataProvider.flush(); dataProvider.refresh(); }
/** * Add object as new row to table * * @param object ExtSource to be added as new row */ public void addToTable(ExtSource object) { list.add(object); oracle.add(object.getName()); oracle.add(renameContent(object.getType())); dataProvider.flush(); dataProvider.refresh(); }
public void setList(ArrayList<ExtSource> list) { clearTable(); this.list.addAll(list); for (ExtSource object : list) { oracle.add(object.getName()); oracle.add(renameContent(object.getType())); } dataProvider.flush(); dataProvider.refresh(); }
public void insertToTable(int index, Destination object) { list.add(index, object); oracle.add(object.getDestination()); if (service == null) { oracle.add(object.getService().getName()); } else { oracle.add(object.getFacility().getName()); } dataProvider.flush(); dataProvider.refresh(); }
public void setList(ArrayList<Destination> list) { clearTable(); this.list.addAll(list); for (Destination d : list) { oracle.add(d.getDestination()); if (service == null) { oracle.add(d.getService().getName()); } else { oracle.add(d.getFacility().getName()); } } dataProvider.flush(); dataProvider.refresh(); }
/** Clear all table content */ public void clearTable() { loaderImage.loadingStart(); list.clear(); fullBackup.clear(); oracle.clear(); selectionModel.clear(); dataProvider.flush(); dataProvider.refresh(); }