GWT:当鼠标熄灭时,让PopupPanel消失

Muh*_*edy 2 gwt panel popup

这是GWT PopupPanelShowCase:http://gwt.google.com/samples/Showcase/Showcase.html#!CwBasicPopup

当用户点击面板时,Panel隐藏了..

我需要的是当用户将鼠标移出面板区域时隐藏它...

怎么做到这一点?

Chr*_*ing 6

yourPopupPanel.addDomHandler(new MouseOutHandler() {
    public void onMouseOut(MouseOutEvent event) {
        yourPopupPanel.hide();
    }
}, MouseOutEvent.getType());
Run Code Online (Sandbox Code Playgroud)