Exemplo n.º 1
0
 public void onBrowserEvent(Event event) {
   switch (DOM.eventGetType(event)) {
     case Event.ONMOUSEDOWN:
     case Event.ONMOUSEUP:
     case Event.ONMOUSEMOVE:
     case Event.ONMOUSEOVER:
     case Event.ONMOUSEOUT:
       if (mouseListeners != null) mouseListeners.fireMouseEvent(this, event);
       break;
   }
 }
Exemplo n.º 2
0
 public void removeMouseListener(MouseListener listener) {
   if (mouseListeners != null) mouseListeners.remove(listener);
 }
Exemplo n.º 3
0
 public void addMouseListener(MouseListener listener) {
   if (mouseListeners == null) mouseListeners = new MouseListenerCollection();
   mouseListeners.add(listener);
 }