Could I please get some clarification on how to use the double click
event handling? The classes are there (e.g.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/dom/client/HasDoubleClickHandlers.html)
but don't seem to be implemented anywhere.
I would like to add double click handling to an Image, could someone
please give me some example snippet of code on how to do this? I've
tried simple things like extending Image and implementing
HasDoubleClickHandlers, e.g.
private class CommandButton extends Image implements
DoubleClickHandler, HasDoubleClickHandlers {
private HandlerManager clickHandlers = new HandlerManager(this);
public CommandButton(){
super("images/favicon-2.png");
addDoubleClickHandler(this);
}
@Override
public void onDoubleClick(DoubleClickEvent event) {
Log.debug("doubleclicked command button");
}
@Override
public HandlerRegistration
addDoubleClickHandler(DoubleClickHandler
handler) {
return
clickHandlers.addHandler(DoubleClickEvent.getType(),
handler);
}
@Override
public void fireEvent(GwtEvent<?> event){
handlers.fireEvent(event);
}
}
but of course this doesn't handle double click events.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---