AndyB
unread,Oct 7, 2009, 8:28:44 PM10/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit Applications
Hi,
I am new to GWT and have really been enjoying the book except for the
fact that since the update, a lot of the code has been depreciated :(.
I am trying to code an implementation of the Gadget Desktop
Application but when it comes to "Dragging Widgets Using Mouse Events"
the SourceMouseEvents interface has been depreciated.
I did some searching and all I could find was to use the new
HasAllMouseHandlers interface instead. . . but I cannot find any
documentation with example usage of the interface.
The code in the book states that I should add/remove MouseListeners to
the title in the GadgetContainerView... ie:
public void addMouseListener(MouseListener listener)
{ title.addMouseListener(listener); }
..and
public void removeMouseListener(MouseListener listener)
{ title.removeMouseListener(listener); }
finally then in the DockableWidget class you have the onMouseDown
method.
But all this has been depreciated, could someone show me how to
achieve this by using the HasAllMouseHandlers interface? (or another
thats not depreciated)
Thanks for your time in reading.
Andy