Java GWT弹出面板的自动隐藏
一段时间后如何隐藏GWT装饰的Popuppanel?我可以用定时器类,但可能存在一些更优雅的方式 如果要在用户在其外部单击时隐藏它,可以指定“自动隐藏”属性Java GWT弹出面板的自动隐藏,java,gwt,Java,Gwt,一段时间后如何隐藏GWT装饰的Popuppanel?我可以用定时器类,但可能存在一些更优雅的方式 如果要在用户在其外部单击时隐藏它,可以指定“自动隐藏”属性 DecoratedPopupPanel public DecoratedPopupPanel(boolean autoHide, boolean modal) Creates an empty decorated popup panel, specifying its "au
DecoratedPopupPanel
public DecoratedPopupPanel(boolean autoHide,
boolean modal)
Creates an empty decorated popup panel, specifying its "auto-hide" and "modal" properties.
Parameters:
autoHide - true if the popup should be automatically hidden when the user clicks outside of it
modal - true if keyboard or mouse events that do not target the PopupPanel or its children should be ignored
提及
另一个选项是您发现的计时器类。如果您想在用户在其外部单击时隐藏它,可以指定autohide属性
DecoratedPopupPanel
public DecoratedPopupPanel(boolean autoHide,
boolean modal)
Creates an empty decorated popup panel, specifying its "auto-hide" and "modal" properties.
Parameters:
autoHide - true if the popup should be automatically hidden when the user clicks outside of it
modal - true if keyboard or mouse events that do not target the PopupPanel or its children should be ignored
提及
另一个选项是您已经发现的计时器类。绝对不是。您必须创建一个计时器对象来处理它绝对不能。您必须创建一个计时器对象来处理它也许GWT
调度程序
比计时器更适合您的任务
请参阅也许GWT
调度程序比计时器更适合您的任务
请参见谢谢您的回答。据我所知,这是重复命令?这是低级API,请不要使用,如果你完全理解谢谢你的回答。据我所知,这是重复命令?这是低级API,如果您完全理解,请不要使用