[svn r276] made import work almost
This commit is contained in:
parent
e120304436
commit
b1aee18d36
6 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue