这就是我想问的 - 我有这个代码:
winModal.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClickEvent event) {
_addRedrawCodeHere_
winModal.destroy();
}
});
我想在这里添加一个功能,用于重绘导致此模态窗口的小部件。请帮助我伙计们。
您是否尝试仅调用父小部件重绘?
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();
}
});
}
}