我想实现onMouseOut
隐藏弹出窗口的方法。
这两种方法有什么区别..?
1.添加鼠标输出处理程序
actionsPopup.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
actionsPopup.hide();
}
});
});
2.添加DOMHandler
actionsPopup.addDomHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
actionsPopup.hide();
}
});
}, MouseOutEvent.getType());