2
Fork 0

[svn r276] made import work almost

This commit is contained in:
willemc 2007-08-24 23:18:39 +02:00
parent e120304436
commit b1aee18d36
6 changed files with 9 additions and 7 deletions

View file

@ -147,6 +147,11 @@ public class SwingVascViewRenderer implements VascViewRenderer {
try {
result = table.getVascDataSource().merge(rowBean);
} finally {
// todo: make faster
// add to table at position old old object
// then remove old object
// send refresh
table.getVascTableController().refreshData(table);
}
}
@ -164,6 +169,8 @@ public class SwingVascViewRenderer implements VascViewRenderer {
);
if (response==JOptionPane.YES_OPTION) {
table.getVascDataSource().delete(rowBean);
table.getTableData().remove(rowBean);
table.setSelectedObject(null);
table.getVascTableController().fireVascEvent(VascEventListener.VascEventType.DATA_UPDATE, rowBean);
}
}