I like to remove a context menu from Frame and add some mouse listener into
Frame. I try the following code and it doesn't work:
frame.addHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
Element relativeElement = event.getRelativeElement();
System.out.println(relativeElement);
}
}, MouseDownEvent.getType());
frame.addDomHandler(new ContextMenuHandler() {
@Override public void onContextMenu(ContextMenuEvent event) {
event.preventDefault();
event.stopPropagation();
}
}, ContextMenuEvent.getType());
Thanks.
Leon
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.