Gadget Desktop App -- DockableWidget with HasAllMouseHandlers?

8 views
Skip to first unread message

AndyB

unread,
Oct 7, 2009, 8:28:44 PM10/7/09
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
Reply all
Reply to author
Forward
0 new messages