A
a
Hi
I have 2 classes. The CatContainer extends the HorizontalPanel. The
CatContainer should be updated when the CatWidget receives updated data from
database by GWT RPC.
How can I implement the update of the CatContainer?
Thanks
class CatContainer extends HorizontalPanel{
private CatWidget catWidget=new CatWidget(1);
//how can I implement the following to update the GUI?
catWidget.refresh( new CallBackFunc()
{
onSuccess()
{
//Update GUI
}
}
}
class CatWidget{
private data;
void refresh()
{
//Call GWT async to retrieve data from database, and update the data.
}
}
I have 2 classes. The CatContainer extends the HorizontalPanel. The
CatContainer should be updated when the CatWidget receives updated data from
database by GWT RPC.
How can I implement the update of the CatContainer?
Thanks
class CatContainer extends HorizontalPanel{
private CatWidget catWidget=new CatWidget(1);
//how can I implement the following to update the GUI?
catWidget.refresh( new CallBackFunc()
{
onSuccess()
{
//Update GUI
}
}
}
class CatWidget{
private data;
void refresh()
{
//Call GWT async to retrieve data from database, and update the data.
}
}