有什么办法可以创建类似于GWT中的JavaScript警报的东西吗? [英] Is there any way to create something similar to Javascript's alert in GWT?

查看:98
本文介绍了有什么办法可以创建类似于GWT中的JavaScript警报的东西吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好有什么办法可以在GWT中创建类似于 Window.alert()的东西吗?
基本上我想自定义 Window.alert()的确定按钮来说别的,但是
,因为我研究过没有办法自定义提醒框。

Hi is there any way to create something similar to Window.alert() in GWT? Basically I wanted to customize the Window.alert()'s "Ok" button to say something else but as I researched there is no way to customize the alert boxes.

谢谢。

推荐答案

Window.alert()已经在GWT中可用。它会打开一个本机对话框,其中包含由浏览器的语言环境本地化的OK按钮。此警报框无法更改。

Window.alert() is already available in GWT. It opens a native dialog box which contais OK button localized by the browser's locale. This alert box can not be changed.

使用 PopupPanel DecoratedPopupPanel

这篇关于有什么办法可以创建类似于GWT中的JavaScript警报的东西吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆