Hi,

I think it must be interesting to read
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiHandlers.html

You need to register your own object to the event system. For example:

public MyTree() {
  addDomHandler(MouseMoveEvent.getType() this);
}

Olivier

On 22 mar, 12:16, shahid <[email protected]> wrote:
> Sorry the MyTree class does implement the interface as well :
>
> class MyTree extends Composite implements IsDnDContainer {
>   ......
>
> }
>
> On Mar 22, 11:07 am, shahid <[email protected]> wrote:
>
> > I have written a custom tree using GWT 2.0.4 and am trying to
> > implement Drag and Drop for it. I have created an interface as
> > follows :
>
> > public interface IsDnDContainer extends MouseUpHandler,
> > MouseMoveHandler {
> >   ....
>
> > }
>
> > and then I have the tree as follows :
>
> > class MyTree extends Composite {
>
> >         public MyTree() {
>
> >         }
>
> >         @Override
> >         public void onMouseMove(MouseMoveEvent event) {
> >                 DraggableTreeAnchor draggedItem = (DraggableTreeAnchor)
> > this.getDraggedObject();
> >         }
>
> > }
>
> > but the event never fires.
>
> > What am I missing here ?
>
>

-- 
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.

Reply via email to