We are using GWT's PopupPanel. It is displayed when the mouse hovers
over a target widget and is hidden on mouse out. This widget sinks the
mouse events to do so.
public class TargetWidget extends SimplePanel {
private PopupPanel popupPanel;
public TargetWidget() {
popupPanel = new PopupPanel();
popupPanel.add(new Label("Pop Up"));
sinkEvents(Event.MOUSEEVENTS);
}
/**
* {...@inheritdoc}
*/
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (DOM.eventGetType(event) == Event.ONMOUSEOVER) {
int left = getAbsoluteLeft() + 60;
int top = getAbsoluteTop() - 15;
popupPanel.setPopupPosition(left, top);
popupPanel.show();
} else if (DOM.eventGetType(event) == Event.ONMOUSEOUT) {
popupPanel.hide();
}
}
}
In IE 6 when the mouse enters the target widget, an hour glass is
shown next to the mouse pointer. We would like to NOT show this, as it
gives an impression that a server call or some processing is being
done. This is not the case in IE 7/8 or Firefox.
Can anyone please comment on how to hide this hour glass.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---