That is what I'd like to ask - I've got this code:
winModal.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClickEvent event) {
_addRedrawCodeHere_
winModal.destroy();
}
});
and I want to add here a functionality for redrawing a widget that caused this modal window. Please help me guys.
Did you try just calling the parent widget redraw?
class ILaunchedThatWinModal extends vLayout{
//blablabla code here...
public void launchWinModal(){
final Window winModal = new Window();
//configuring the winModal.
winModal.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClickEvent event) {
ILaunchedThatWindModal.this.markForRedraw(); //<-Look here
winModal.destroy();
}
});
}
}