public void update(Observable o, Object arg)
{
if (arg instanceof DataProviderEvent)
{
DataProviderEvent obsAct = (DataProviderEvent) arg;
int act = obsAct.getEventType();
if (act == DataProviderEvent.EVENT_TYPE_NEW)
{
this.tableWidget.addRowObject(obsAct.getNewEntity());
}
else if (act == DataProviderEvent.EVENT_TYPE_UPDATE)
{
replaceRowObject(obsAct.getOldEntity(), obsAct.getNewEntity());
}
else if (act == DataProviderEvent.EVENT_TYPE_DELETE)
{
this.tableWidget.removeRowObject(obsAct.getOldEntity());
}
}
}