Smartgwt 模式 window。如何定义一个导致它重绘的小部件?

Smartgwt modal window. how to define a widget that caused it to redraw it?

这就是我想问的 - 我有这个代码:

winModal.addCloseClickHandler(new CloseClickHandler() {
        public void onCloseClick(CloseClickEvent event) {
               _addRedrawCodeHere_
               winModal.destroy();
        }
});

我想在这里添加一个功能,用于重绘导致此模态 window 的小部件。 请大家帮帮我。

你试过只调用父控件重绘吗?

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();
                }
           });
     }
}