[svn r297] some hack work to enable some features and removed all compiler warnings
This commit is contained in:
parent
1e74f3c039
commit
6a2813f43d
20 changed files with 829 additions and 57 deletions
|
|
@ -147,6 +147,7 @@ public class DefaultVascTableController implements VascTableController {
|
|||
return object;
|
||||
}
|
||||
object = table.getVascRecordCreator().newRecord(table);
|
||||
fireVascEvent(VascEventListener.VascEventType.BEAN_INIT, object);
|
||||
return object;
|
||||
}
|
||||
|
||||
|
|
@ -245,4 +246,21 @@ public class DefaultVascTableController implements VascTableController {
|
|||
public void removeExceptionListener(VascExceptionListener listener) {
|
||||
exceptionListeners.remove(listener);
|
||||
}
|
||||
|
||||
public Object mergeObject(VascTable table,Object object) {
|
||||
Object result = null;
|
||||
try {
|
||||
object = table.getVascDataSource().merge(object);
|
||||
fireVascEvent(VascEventListener.VascEventType.BEAN_MERGE,object);
|
||||
// todo: make faster
|
||||
// add to table at position old old object
|
||||
// then remove old object
|
||||
// send refresh
|
||||
|
||||
table.getVascTableController().refreshData(table);
|
||||
} catch (Exception e) {
|
||||
handleException(e, table);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue