相关疑难解决方法(0)

在GWT中关闭窗口执行代码

我想做这样的事情:

Window.addWindowClosingHandler(new Window.ClosingHandler() {

    @Override
    public void onWindowClosing(ClosingEvent event) {
        event.setMessage("Really?");

        // If user clicks 'ok' in the dialog, execute code below. Else skip the code and return to window.

        // CODE that does stuff goes here.
    }
});
Run Code Online (Sandbox Code Playgroud)

如何从对话框中捕获输入?

java events gwt

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

events ×1

gwt ×1

java ×1