public void removeMouseHandler(int eventID, MouseEventHandler handler) {
mouseEventHandlers.remove(eventID, handler);
}
public void setPopupMenuRequestHandler(PopupMenuRequestHandler handler) {
MouseEventHandler evtH = fromPopupMenuRequestHandler(handler);
// For cross-platform reasons, we need to check for popup-triggers
// on both mouse released and mouse pressed events:
mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_RELEASED), evtH);
mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_PRESSED), evtH);
}