package me.teaisaweso.client;

import com.google.gwt.event.dom.client.HasMouseDownHandlers;
import com.google.gwt.event.dom.client.HasMouseMoveHandlers;
import com.google.gwt.event.dom.client.HasMouseUpHandlers;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.event.dom.client.MouseUpEvent;
import com.google.gwt.event.dom.client.MouseUpHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Event;
import com.google.gwt.widgetideas.graphics.client.GWTCanvas;

public class CanvasWrapper extends GWTCanvas implements MouseDownHandler, MouseUpHandler, MouseMoveHandler, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseUpHandlers {

    public CanvasWrapper() {
        super();
        sinkEvents(Event.MOUSEEVENTS);
    }

    public CanvasWrapper(int coordX, int coordY, int pixelX, int pixelY) {
        super(coordX, coordY, pixelX, pixelY);
        sinkEvents(Event.MOUSEEVENTS);
    }

    public CanvasWrapper(int coordX, int coordY) {
        super(coordX, coordY);
        sinkEvents(Event.MOUSEEVENTS);
    }

    @Override
    public HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public void onMouseMove(MouseMoveEvent event) {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void onMouseUp(MouseUpEvent event) {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void onMouseDown(MouseDownEvent event) {
        // TODO Auto-generated method stub
        
    }
    
    
}

@@ -24,16 +24,111 @@
 lient;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.google.gwt.dev.ui.UiEvent.Type;%0A
 import c
@@ -725,24 +725,66 @@
 ient.Event;%0A
+import com.google.gwt.user.client.Window;%0A
 import com.g
@@ -918,24 +918,32 @@
 seUpHandler,
+%0A       
  MouseMoveHa
@@ -1092,32 +1092,69 @@
 t.MOUSEEVENTS);%0A
+        this.createHandlerManager();%0A
     %7D%0A%0A    publi
@@ -1541,62 +1541,58 @@
     
-// TODO Auto-generated method stub%0A        return null
+return addHandler(handler, MouseUpEvent.getType())
 ;%0A  
@@ -1701,62 +1701,60 @@
     
-// TODO Auto-generated method stub%0A        return null
+return addHandler(handler, MouseMoveEvent.getType())
 ;%0A  
@@ -1863,62 +1863,60 @@
     
-// TODO Auto-generated method stub%0A        return null
+return addHandler(handler, MouseDownEvent.getType())
 ;%0A  
@@ -1998,51 +1998,30 @@
     
-// TODO Auto-generated method stub%0A        
+Window.alert(%22death%22);
 %0A   
@@ -2098,51 +2098,30 @@
     
-// TODO Auto-generated method stub%0A        
+Window.alert(%22death%22);
 %0A   
@@ -2202,66 +2202,36 @@
     
-// TODO Auto-generated method stub%0A        %0A    %7D%0A    %0A    
+Window.alert(%22death%22);%0A    %7D%0A
 %0A%7D%0A

fix canvaswrapper