I am having difficulty understanding the usage of the
HasAllMouseHandlers interface.
I have been learning how to develop with GWT by reading the GWT
Applications book but a lot of the code has been depreciated.
In one of the sample applications, the depreciated SourceMouseEvents
interface is used as follows:
public class GadgetContainerView extends SimplePanel implements
SourceMouseEvents
{
public void addMouseListener(MouseListener listener)
{
title.addMouseListener(listener);
}
public void removeMouseListener(MouseListener listener)
{
title.removeMouseListener(listener);
}
}
And then later in a containing class it uses the "public void
onMouseDown(Widget sender, in x, int y){ }" method.
I have been trying to figure out how to do this by using the
HasAllMouseHandlers but I cant figure it out.
Could someone explain it for me please?
Thanks for reading,
Andy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---