Manage Mouse click of widget that have annotation.

@param event the mouse event
543415
void onMouseClicked(final MouseEvent event) {

        LOGGER.debug("Start button clicked => Call Comparison Service");

        // Clear out the table view
        model().object().pLastResult().clear();

        // Call service to populate it again
        model().returnData(ComparatorService.class,
                           ComparatorService.DO_COMPARE,
                           WBuilder.waveData(JRebirthWaves.PROGRESS_BAR, view().getProgressBar()),
                           WBuilder.waveData(JRebirthWaves.TASK_TITLE, view().getProgressTitle()),
                           WBuilder.waveData(JRebirthWaves.TASK_MESSAGE, view().getProgressMessage()),
                           WBuilder.waveData(ComparatorService.SOURCE, model().object().sourcePath()),
                           WBuilder.waveData(ComparatorService.TARGET, model().object().targetPath()));

    }
504793
public void onMouseUp(MouseUpEvent event) {
		if (event.getNativeButton() != NativeEvent.BUTTON_RIGHT) {
			Coordinate coordinate = getWorldPosition(event);
			if (distanceLine.getOriginalLocation() == null) {
				distanceLine.setGeometry(getFactory().createLineString(new Coordinate[] { coordinate }));
				mapWidget.registerWorldPaintable(distanceLine);
				mapWidget.registerWorldPaintable(lineSegment);
				dispatchState(State.START);
			} else {
				Geometry geometry = (Geometry) distanceLine.getOriginalLocation();
				InsertCoordinateOperation op = new InsertCoordinateOperation(geometry.getNumPoints(), coordinate);
				geometry = op.execute(geometry);
				distanceLine.setGeometry(geometry);
				tempLength = (float) geometry.getLength();
				updateMeasure(event, true);
				dispatchState(State.CLICK);
			}
			mapWidget.render(mapWidget.getMapModel(), RenderGroup.VECTOR, RenderStatus.UPDATE);
		}
	}
304542
protected void onMove(Event event) {

        m_clientX = event.getClientX();
        m_clientY = event.getClientY();
        checkTargets();
        positionHelper();
        scrollAction();
    }
816836
def mouseDoubleClickEvent(self, event):
        
        item = self.itemAt(event.pos())
        column = self.columnAt(event.pos().x())
        
        mid_button = event.button() == QtCore.Qt.MidButton
        ctrl_click = event.button() == QtCore.Qt.LeftButton and \
                     event.modifiers() == QtCore.Qt.ControlModifier
        
        if mid_button or ctrl_click:
            self.itemMiddleDoubleClicked.emit(item, column)
        elif event.button() == QtCore.Qt.RightButton:
            self.itemRightDoubleClicked.emit(item, column)
        else:
            super(XTreeWidget, self).mouseDoubleClickEvent(event)
1339982
def mouseReleaseEvent(self, event):
        
        self.declaration.mouse_release_event(event)
        super(QtGraphicsView, self).mouseReleaseEvent(event)
1080433
@Override
	public void click() throws WidgetException {
		try {
		   final WebElement webElement = getWebElement();

		        if (!getGUIDriver().isJavascriptClickMode()) {
		            synchronized (InteractiveElement.class) {
		                getGUIDriver().focus();
		                highlight( HIGHLIGHT_MODES.PUT);
		                webElement.click();
		            }
		        } else {
                    highlight( HIGHLIGHT_MODES.PUT);
                    try {
                        eval("arguments[0].click();");
                    } catch (WidgetException we) {
                        throw new RuntimeException(we);
                    }
		        }

		        getGUIDriver().selectLastFrame();
		} catch (Exception e) {
			throw new WidgetException("Error while clicking element",
					getByLocator(), e);
		}
	}
287297
def mouseDoubleClickEvent( self, event ):
        
        super(XNavigationEdit, self).mouseDoubleClickEvent(event)
        
        self.startEdit()
1361723
public void onLeafClick(LeafClickEvent event) {
		try {
			if (isIconTargetClicked()) {
				onIconClick(event.getLeaf());
			} else {
				LayerTreeTreeNode layerTreeNode = (LayerTreeTreeNode) event.getLeaf();
				mapModel.selectLayer(layerTreeNode.getLayer());
			}
		} catch (Exception e) { // NOSONAR
			Log.logError(e.getMessage());
			// some other unusable element
		}
	}
1021086
def mouseReleaseEvent(self, event):
        
        if event.button() == Qt.LeftButton:
            self._drag_origin = None
        widget = self.widget
        type(widget).mouseReleaseEvent(widget, event)
698145
def _on_mouse_moved(self, event):
        
        if event.modifiers() & QtCore.Qt.ControlModifier:
            cursor = TextHelper(self.editor).word_under_mouse_cursor()
            if (not self._cursor or
                    cursor.position() != self._cursor.position()):
                self._check_word_cursor(cursor)
            self._cursor = cursor
        else:
            self._cursor = None
            self._clear_selection()
914287
def mousePressEvent( self, event ):
        
        XPopupWidget.hideToolTip()
        
        # update the current date
        self.setCurrentDate(self.dateAt(event.scenePos()))
        
        super(XCalendarScene, self).mousePressEvent(event)
338637
public void onClick(ClickEvent event) {
		GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance();
		SsecAccess.logout();
		dispatcher.logout();
	}
1240063
public void mouseExited(MouseEvent evt)
    {
        JLabel button = (JLabel)evt.getSource();
        button.setBorder(oldBorder);
    }
1347001
@Override
	public void fireEvent(String event) throws WidgetException {
		try {
			String javaScript = null;
			if (event.startsWith("mouse")) {
				javaScript = "if(document.createEvent){var evObj = document.createEvent('MouseEvents');evObj.initEvent('" + event
						+ "', true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject) { arguments[0].fireEvent('on" + event + "');}";
			} else {
				javaScript = "if(document.createEvent){var evObj = document.createEvent('HTMLEvents');evObj.initEvent('" + event
						+ "', true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject) { arguments[0].fireEvent('on" + event + "');}";
			}
			eval(javaScript);
		} catch (Exception e) {
			throw new WidgetException("Error while trying to fire event", getByLocator(), e);
		}
	}
181010
def _on_mouse_moved(self, event):
        
        if event.modifiers() & Qt.ControlModifier:
            self._select_word_under_mouse_cursor()
        else:
            self._remove_decoration()
            self.editor.set_mouse_cursor(Qt.IBeamCursor)
            self._previous_cursor_start = -1
            self._previous_cursor_end = -1
974466
@Override
    public void onBrowserEvent(Event event) {

        super.onBrowserEvent(event);

        switch (DOM.eventGetType(event)) {
            case Event.ONMOUSEUP:
                Event.releaseCapture(m_slider.getElement());
                m_capturedMouse = false;
                break;
            case Event.ONMOUSEDOWN:
                Event.setCapture(m_slider.getElement());
                m_capturedMouse = true;
                //$FALL-THROUGH$
            case Event.ONMOUSEMOVE:
                if (m_capturedMouse) {
                    event.preventDefault();
                    float x = ((event.getClientX() - (m_colorUnderlay.getAbsoluteLeft())) + Window.getScrollLeft());
                    float y = ((event.getClientY() - (m_colorUnderlay.getAbsoluteTop())) + Window.getScrollTop());

                    if (m_parent != null) {
                        m_parent.onMapSelected(x, y);
                    }

                    setSliderPosition(x, y);
                }
                //$FALL-THROUGH$
            default:

        }
    }
346616
protected void onMouseReleased(final MouseEvent mouseEvent) {

        if (model().getMenuShown().get()) {
            mouseEvent.consume();
        }

        if (!mouseEvent.isSynthesized() && /* !(mouseEvent.getTarget() instanceof Pane) && */!(mouseEvent.getTarget() instanceof WebView)) {

            final WaveData<Boolean> data = WBuilder.waveData(PrezWaves.SKIP_SLIDE_STEP, mouseEvent.isControlDown());

            if (mouseEvent.getButton() == MouseButton.PRIMARY) {
                model().callCommand(ShowNextSlideCommand.class, data);
                mouseEvent.consume();
            } else if (mouseEvent.getButton() == MouseButton.SECONDARY) {
                model().callCommand(ShowPreviousSlideCommand.class, data);
                mouseEvent.consume();
            } else if (mouseEvent.getButton() == MouseButton.MIDDLE) {
                model().callCommand(ShowSlideMenuCommand.class);
                mouseEvent.consume();
            }
        }
    }