此功能是丁鹤泽开发的:
/**
* popup 离开时候隐藏
*/
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
boolean isSameEvent = DOM.eventGetType(event) ==
Event.ONMOUSEOUT;
Element element = DOM.eventGetToElement(event);
boolean isChild = DOM.isOrHasChild(getElement(),
element);
if (isSameEvent && !isChild){
//这里处理鼠标离开popuppanel事件
//here is the mouseout
event
}
}
readme:
rewrite the onBrowserEvent in your widget.
@auther 丁鹤泽 www.hotye.com
On 9月4日, 下午8时01分, javaz <[EMAIL PROTECTED]> wrote:
> hi ,Can anyone give me idea on how to hide PopupPanel when mouse
> leaves its area?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---