Java Code Examples for com.google.gwt.event.dom.client.MouseOverEvent

The following are top voted examples for showing how to use com.google.gwt.event.dom.client.MouseOverEvent. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: putnami-web-toolkit   File: TableOrder.java   Source Code and License 7 votes vote down vote up
@Override
public void onMouseDown(MouseDownEvent event) {
	this.onMouseUp(null);

	Icon dragIcon = (Icon) event.getSource();
	this.selectedRow = (TableRow<T>) dragIcon.getParent().getParent();
	this.body = (TableEditorBody<T>) this.selectedRow.getParent();

	this.overRegistration = new HandlerRegistrationCollection();
	this.upRegistration = RootPanel.get().addDomHandler(this, MouseUpEvent.getType());
	this.rows = Lists.newArrayList(this.body.getRows());
	for (TableRow<T> row : this.rows) {
		this.overRegistration.add(row.addDomHandler(this, MouseOverEvent.getType()));
	}
	TableOrder.this.disableTextSelection(true);
	RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.MOVE);
	StyleUtils.addStyle(this.selectedRow, TableOrder.STYLE_ROW_DRAGING);
}
 
Example 2
Project: regex-tester   File: ResultMouseOverHandler.java   Source Code and License 7 votes vote down vote up
public void onMouseOver(final MouseOverEvent event)
{
   HighlightedResult widget = (HighlightedResult) event.getSource();
   HighlightedGroup group = widget.getHighlightedGroup();

   if (group.getGroup() != null)
   {
      widget.setMouseOverEvent(event);
      if (!hasHighlightedChildren(widget))
      {
         area.setSelectionRange(0, 0);
         int start = group.getGroup().getRegexFragment().getStart();
         int length = group.getGroup().getRegexFragment().getCaptured().length + 2;

         if (start + length > area.getText().length())
            length = area.getText().length() - start;

         area.setSelectionRange(start, length);
      }
   }
}
 
Example 3
Project: x-cure-chat   File: UserAvatarImageWidget.java   Source Code and License 6 votes vote down vote up
@Override
public void onMouseOver(MouseOverEvent event) {
	if( SiteManager.isUserLoggedIn() ) {
		//If the user is logged in, then
		if( SiteManager.getUserID() == userID ) {
			//If this is the avatar of the user who is logged in
			if( AvatarSpoilersHelper.isAvatarSpoilerActive( spoilerID, spoilerExpDate ) ) {
				//If this user is pranked  he can clean his prank
				activateControls( false , true );
			} else {
				//If this user is NOT pranked then there is nothing to be done
				activateControls( false , false );
			}
		} else {
			//If this is an avatar of some other user
			if( AvatarSpoilersHelper.isAvatarSpoilerActive( spoilerID, spoilerExpDate ) ) {
				//If the other user is pranked then one can clean his prank or set a new one
				activateControls( true , true );
			} else {
				//If the other user is NOT pranked then one can prank him
				activateControls( true , false );
			}
		}
	}
}
 
Example 4
Project: che   File: ConsoleButtonImpl.java   Source Code and License 6 votes vote down vote up
@Inject
public ConsoleButtonImpl(
    ButtonResources resources,
    TooltipWidget tooltip,
    @NotNull @Assisted String prompt,
    @NotNull @Assisted SVGResource image) {
  this.resources = resources;
  this.tooltip = tooltip;
  this.tooltip.setDescription(prompt);

  resources.buttonCss().ensureInjected();

  initWidget(UI_BINDER.createAndBindUi(this));

  icon = new SVGImage(image);
  icon.getElement().setAttribute("class", resources.buttonCss().mainButtonIcon());

  setCheckedStatus(false);

  addDomHandler(this, ClickEvent.getType());
  addDomHandler(this, MouseOutEvent.getType());
  addDomHandler(this, MouseOverEvent.getType());
}
 
Example 5
Project: OpenTripPlanner-client-gwt   File: ItineraryDetailsWidget.java   Source Code and License 6 votes vote down vote up
private Widget getEndPointDetails(final String css, Date time,
		String address, final Wgs84LatLonBean position) {
	HTML line = new HTML();
	line.addStyleName("itinerary-details-line");
	line.addStyleName("itinerary-details-" + css);
	line.addStyleName(css + "-icon");
	String html = "<span class='time'>" + FormatUtils.formatTime(time)
			+ "</span> - " + FormatUtils.formatAddress(address);
	line.setHTML(html);
	final String infoHtml = "<div class='info-panel-" + css + " " + css
			+ "-icon'>" + html + "</div>";
	line.addMouseOverHandler(new MouseOverHandler() {

		@Override
		public void onMouseOver(MouseOverEvent event) {
			if (selected)
				listener.onItineraryStepClicked(infoHtml, position);
		}
	});
	return line;
}
 
Example 6
Project: firefly   File: BasicImageGrid.java   Source Code and License 6 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
    Widget widget = (Widget) event.getSource();
    if (doHilite) {
        GwtUtil.setStyle(widget, "backgroundColor", hiliteBackground);
        GwtUtil.setStyle(widget, "border", "1px solid " + hiliteBorder);
    }
    BasicImageGrid.this.setMouseOverAt(widget);
    mouseOverTimer.schedule(1500);
}
 
Example 7
Project: firefly   File: ImageGridPanel.java   Source Code and License 6 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
    Widget widget = (Widget)event.getSource();
    DOM.setStyleAttribute(widget.getElement(), "backgroundColor", "#bde");
    DOM.setStyleAttribute(widget.getElement(), "border", "1px solid #abc");
    ImageGridPanel.this.setMouseOverAt(widget);
    mouseOverTimer.schedule(1500);
}
 
Example 8
Project: appformer   File: SideDockItem.java   Source Code and License 6 votes vote down vote up
void createButton() {
    itemButton.setSize(ButtonSize.SMALL);
    itemButton.setType(ButtonType.LINK);
    configureIcon(itemButton,
                  getDock().getImageIcon());
    mouseEventHandler = new MouseEventHandler();
    itemButton.addDomHandler(mouseEventHandler,
                             MouseOverEvent.getType());
    itemButton.addStyleName(CSS.CSS().sideDockItem());
    itemButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            if (!isOpened()) {
                openAndExecuteExpandCommand();
            } else {
                closeAndExecuteCommand();
            }
        }
    });
}
 
Example 9
Project: platypus-js   File: EventsExecutor.java   Source Code and License 6 votes vote down vote up
public void setMouseEntered(JavaScriptObject aValue) {
	if (mouseEntered != aValue) {
		if (mouseOverReg != null) {
			mouseOverReg.removeHandler();
			mouseOverReg = null;
		}
		mouseEntered = aValue;
		if (mouseEntered != null) {
			MouseOverHandler handler = new MouseOverHandler() {
				@Override
				public void onMouseOver(MouseOverEvent event) {
					if (mouseEntered != null) {
						event.stopPropagation();
						executeEvent(mouseEntered, EventsPublisher.publish(event));
					}
				}
			};
			if (component instanceof Widget) {
				mouseOverReg = ((Widget) component).addDomHandler(handler, MouseOverEvent.getType());
			} else if (component instanceof HasMouseOverHandlers) {
				mouseOverReg = ((HasMouseOverHandlers) component).addMouseOverHandler(handler);
			}
		}
	}
}
 
Example 10
Project: bitcoin-transaction-explorer   File: ContextFieldSet.java   Source Code and License 6 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public void onMouseOver(final MouseOverEvent event) {
  popupHideTimer.cancel();

  if (popupShowTimer != null) {
    popupShowTimer.cancel();
  }

  popupShowTimer = new TypedTimer((ContextField<T>) event.getSource());
  popupShowTimer.schedule(popupPanel.isShowing() ? 0 : POPUP_SHOW_DELAY);
}
 
Example 11
Project: bitcoin-transaction-explorer   File: ContextFieldSet.java   Source Code and License 6 votes vote down vote up
@SuppressWarnings("unchecked")
@Override
public void onClick(final ClickEvent event) {
  if (selectedField != null) {
    selectedField.setSelected(false);
  }

  if (selectedField == event.getSource()) {
    selectedField = null;
    return;
  }

  selectedField = (ContextField<T>) event.getSource();
  selectedField.setSelected(true);

  selectedField.fireEvent(new MouseOverEvent() {});
}
 
Example 12
Project: putnami-web-toolkit   File: AbstractHover.java   Source Code and License 6 votes vote down vote up
private void bindHandlers() {
	if (this.widget == null) {
		return;
	}

	this.registrations.removeHandler();
	switch (this.getTrigger()) {
		case FOCUS:
			this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, FocusEvent.getType()));
			this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, BlurEvent.getType()));
			break;
		case HOVER:
			this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, MouseOverEvent.getType()));
			this.registrations.add(this.widget.addDomHandler(this.triggerEventHandler, MouseOutEvent.getType()));
			break;
		case MANUAL:
			break;
		default:
			break;
	}
}
 
Example 13
Project: putnami-web-toolkit   File: TableOrder.java   Source Code and License 6 votes vote down vote up
@Override
public void onMouseOver(MouseOverEvent event) {
	if (event.getNativeButton() == NativeEvent.BUTTON_LEFT) {
		this.hoverRow = (TableRow<T>) event.getSource();
		this.body.switchRows(this.hoverRow, this.selectedRow);
	}
	event.preventDefault();
}
 
Example 14
Project: putnami-web-toolkit   File: Carousel.java   Source Code and License 6 votes vote down vote up
public void setAutoPlay(boolean autoPlay) {
	this.autoPlay = autoPlay;
	this.handlerRegistrations.removeHandler();
	if (autoPlay) {
		this.autoPlayTimer.scheduleRepeating(this.timerDelay);
		this.handlerRegistrations.add(this.addDomHandler(this, MouseOverEvent.getType()));
		this.handlerRegistrations.add(this.addDomHandler(this, MouseOutEvent.getType()));
	} else {
		this.autoPlayTimer.cancel();
	}
}
 
Example 15
Project: atom   File: PopupObjectButton.java   Source Code and License 6 votes vote down vote up
@UiHandler("popupObjectButton")
void doMouseOver(MouseOverEvent event) {
	if(active) {
		borderImage.setResource(AtomClientBundle.INSTANCE.menuPopupOver());
		popupObjectButton.setStyleName(popupObjectButtonStyle.over());
		panel.setStyleName(popupObjectButtonStyle.activeSpace());
	}
}
 
Example 16
Project: incubator-wave   File: GadgetWidgetUi.java   Source Code and License 6 votes vote down vote up
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
  // TODO(user): Investigate why the event propagation does not work and
  // remove unnecessary handler setup.
  addDomHandler(mouseOverHandler, MouseOverEvent.getType());
  addDomHandler(mouseOutHandler, MouseOutEvent.getType());
  enclosingBox.addMouseOverHandler(mouseOverHandler);
  gadgetFrame.addMouseOverHandler(mouseOverHandler);
  iframeDiv.addMouseOverHandler(mouseOverHandler);
  gadgetIframe.addHandler(mouseOverHandler, MouseOverEvent.getType());
  metaButtons.addMouseOverHandler(mouseOverHandler);
  metaLeft.addMouseOverHandler(mouseOverHandler);
  metaButtonsPanel.addMouseOverHandler(mouseOverHandler);
  metaRight.addMouseOverHandler(mouseOverHandler);
  menu.getButton().addMouseOverHandler(mouseOverHandler);
}
 
Example 17
Project: gwt-mousemanager   File: MouseHandlerManager.java   Source Code and License 6 votes vote down vote up
/**
 * Update event caches to keep track of the latest event of each instance.
 * @param the event to cache
 */
private void updateEventCaches(Event<?> event){
	if(event == null){
		return;
	}
	if(event instanceof DoubleClickEvent){
		doubleClickEvent = new org.gz.gwt.mousemanager.client.event.DoubleClickEvent((DoubleClickEvent)event, target);
	}
	if(event instanceof ClickEvent){
		clickEvent = new org.gz.gwt.mousemanager.client.event.ClickEvent((ClickEvent)event, target);
	}		
	if(event instanceof MouseUpEvent){
		mouseUpEvent = new org.gz.gwt.mousemanager.client.event.MouseUpEvent((MouseUpEvent)event, target);
	}
	if(event instanceof MouseDownEvent){
		mouseDownEvent = new org.gz.gwt.mousemanager.client.event.MouseDownEvent((MouseDownEvent)event, target);
	} 
	if(event instanceof MouseMoveEvent){
		mouseMoveEvent = new org.gz.gwt.mousemanager.client.event.MouseMoveEvent((MouseMoveEvent)event, target);
	}
	if(event instanceof MouseOverEvent){
		mouseOverEvent = new org.gz.gwt.mousemanager.client.event.MouseOverEvent((MouseOverEvent)event, target);
	}
	if(event instanceof MouseOutEvent){
		mouseOutEvent = new org.gz.gwt.mousemanager.client.event.MouseOutEvent((MouseOutEvent)event, target);
	}
	if(event instanceof MouseWheelEvent){
		mouseWheelEvent = new org.gz.gwt.mousemanager.client.event.MouseWheelEvent((MouseWheelEvent)event, target);
	}
	if(event instanceof ContextMenuEvent){
		contextMenuEvent = new org.gz.gwt.mousemanager.client.event.ContextMenuEvent();
	}
}
 
Example 18
Project: regex-tester   File: ResultMouseOverHandler.java   Source Code and License 6 votes vote down vote up
public void onMouseOut(final MouseOutEvent event)
{
   HighlightedResult widget = (HighlightedResult) event.getSource();
   HighlightedGroup group = widget.getHighlightedGroup();

   widget.setMouseOverEvent(null);
   if (group.getGroup() != null)
   {
      area.setSelectionRange(0, 0);

      Widget parent = widget.getParent();
      while (parent instanceof HighlightedResult)
      {
         MouseOverEvent mouseOverEvent = ((HighlightedResult) parent).getMouseOverEvent();
         if (mouseOverEvent != null)
         {
            final Widget finalParent = parent;
            onMouseOver(new MouseOverEvent() {
               @Override
               public Object getSource()
               {
                  return finalParent;
               }
            });
            break;
         }
         else
            parent = parent.getParent();
      }
   }
}
 
Example 19
Project: sig-seguimiento-vehiculos   File: AnchorBuilder.java   Source Code and License 5 votes vote down vote up
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
	return new MouseOverHandler() {
		@Override
		public void onMouseOver(MouseOverEvent event) {
			anchor.addStyleName(ThemeStyles.get().style().borderBottom());
		}
	};
}
 
Example 20
Project: GwtErraiMaterialMvcExample   File: LoginPanel.java   Source Code and License 5 votes vote down vote up
private void onSocialButtonMouseOverHandler(MouseOverEvent event ) {
    MaterialImage source = (MaterialImage)event.getSource();
    source.setBackgroundColor(Color.ORANGE);
}
 
Example 21
Project: gwt-chronoscope   File: ChartMouseOverHandler.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
  ChartState chartInfo = getChartState(event);
  Chart chart = chartInfo.chart;
  int x = getLocalX(event);
  int y = getLocalY(event);
  chart.setPlotFocus(x, y);
  boolean isMouseInPlot = false;
  if ((null != chart) && (null != chart.getPlot()) && (null != chart.getPlot().getBounds())) {
    isMouseInPlot = chart.getPlot().getBounds().inside(x, y);
  }
  chart.setCursor(
      isMouseInPlot ? Cursor.DRAGGABLE : Cursor.DEFAULT);
  //((DOMView) chart.getView()).focus();
  chartInfo.setHandled(true);
}
 
Example 22
Project: aggregate   File: AggregateBaseHandlers.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
  if(!AggregateUI.getUI().displayingHelpBalloons()) {
    return;
  }

  if(helpBalloon != null) {
    // hide the tool tip
    widget.setTitle(BasicConsts.EMPTY_STRING);

    // show the help balloon;
    helpBalloon.display();
  }
}
 
Example 23
Project: che   File: ItemsList.java   Source Code and License 5 votes vote down vote up
private void attachEventHandlers() {
  addDomHandler(
      event -> {
        if (overItem != null) {
          overItem.removeStyleName(resources.css().popupItemOver());
        }
        overItem = ItemWidget.this;
        addStyleName(resources.css().popupItemOver());
        if (childList != null) {
          childList.hide();
        }

        if (dataProvider.isGroup(item)) {
          Pair<List<MenuItem>, String> children = dataProvider.getChildren(item);
          createChildPopup(children);
        }
      },
      MouseOverEvent.getType());

  addDomHandler(
      event -> {
        if (dataProvider.isGroup(item)) {
          return;
        }

        hide(true);

        getActionHandler().ifPresent(actionHandler -> actionHandler.onAction(item));
      },
      ClickEvent.getType());
}
 
Example 24
Project: che   File: ConsoleButtonImpl.java   Source Code and License 5 votes vote down vote up
/** {@inheritDoc} */
@Override
public void onMouseOver(MouseOverEvent mouseOverEvent) {
  tooltip.setPopupPosition(getAbsoluteLeft(), getAbsoluteTop() + TOP_TOOLTIP_SHIFT);

  tooltip.show();
}
 
Example 25
Project: che   File: ActionButton.java   Source Code and License 5 votes vote down vote up
private void addDomHandlers() {
  panel.addDomHandler(this, MouseOverEvent.getType());
  panel.addDomHandler(this, MouseOutEvent.getType());
  panel.addDomHandler(this, MouseDownEvent.getType());
  panel.addDomHandler(this, MouseUpEvent.getType());
  panel.addDomHandler(this, ClickEvent.getType());
}
 
Example 26
Project: che   File: ConsoleButtonImplTest.java   Source Code and License 5 votes vote down vote up
@Test
public void tooltipShouldBeShown() throws Exception {
  widget.onMouseOver(mock(MouseOverEvent.class));

  verify(tooltip).setPopupPosition(0, TOP_TOOLTIP_SHIFT);
  verify(tooltip).show();
}
 
Example 27
Project: geowe-core   File: AnchorBuilder.java   Source Code and License 5 votes vote down vote up
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
	return new MouseOverHandler() {
		@Override
		public void onMouseOver(MouseOverEvent event) {
			anchor.addStyleName(ThemeStyles.get().style().borderBottom());
		}
	};
}
 
Example 28
Project: firefly   File: FloatingVisBar.java   Source Code and License 5 votes vote down vote up
public void updateAlignWidget(Widget w) {
    if (hreg != null) {
        hreg.removeHandler();
        hreg = null;
    }
    _popup.alignTo(w, PopupPane.Align.TOP_RIGHT, -15, 0);
    hreg = w.addDomHandler(new MouseOverHandler() {
        public void onMouseOver(MouseOverEvent event) {
            if (_dropClosed) _popup.show();
        }
    }, MouseOverEvent.getType());
}
 
Example 29
Project: firefly   File: FloatingStatusBar.java   Source Code and License 5 votes vote down vote up
public void updateAlignWidget(Widget w) {
    if (hreg!=null) {
        hreg.removeHandler();
        hreg= null;
    }
    popup.alignTo(w, PopupPane.Align.BOTTOM_LEFT, 0, 0);
    hreg= w.addDomHandler(new MouseOverHandler() {
        public void onMouseOver(MouseOverEvent event) {
            if (dropClosed) popup.show();
        }
    },MouseOverEvent.getType() );
}
 
Example 30
Project: appformer   File: MultiplePermissionNodeEditorView.java   Source Code and License 5 votes vote down vote up
@EventHandler("headerPanel")
private void onHeaderMouseOver(MouseOverEvent event) {
    if (!expanded) {
        headerPanel.setClassName("acl-header-panel-over");
        mouseOver = true;
    }
}
 
Example 31
Project: qafe-platform   File: EventFactory.java   Source Code and License 5 votes vote down vote up
public static MouseOverHandler createOnMouseEnterListener(final EventListenerGVO ev, final List<InputVariableGVO> input) {
	return new MouseOverHandler() {
		public void onMouseOver(MouseOverEvent event) {
			Map<String,String> mouseInfo = getMouseInfo(event);
			CallbackHandler.createCallBack(event.getSource(), QAMLConstants.EVENT_ONMOUSE_ENTER, ev, input, mouseInfo);
		}
	};
}
 
Example 32
Project: test-analytics-ng   File: CapabilitiesGridWidget.java   Source Code and License 5 votes vote down vote up
/**
 * Creates a mouse over handler for a specific row and column.
 *
 * @param row the row number.
 * @param column the column number.
 * @return the mouse over handler.
 */
private MouseOverHandler createMouseOverHandler(final int row, final int column) {
  return new MouseOverHandler() {
    @Override
    public void onMouseOver(MouseOverEvent event) {
      mouseOver(row, column);
    }
  };
}
 
Example 33
Project: QMAClone   File: PopupCanvas.java   Source Code and License 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	eventHandlers.put(handler, (DomEvent.Type) MouseOverEvent.getType());
	if (canvas != null) {
		canvas.addDomHandler(handler, MouseOverEvent.getType());
	}
	return null;
}
 
Example 34
Project: QMAClone   File: ClickableLabel.java   Source Code and License 5 votes vote down vote up
@Override
public void onMouseOver(MouseOverEvent event) {
	if (enabled) {
		addStyleDependentName(CLICKABLE_ENTER);

	}
}
 
Example 35
Project: geomajas-project-client-gwt   File: CompositeGeometryIndexController.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
	if (service.getIndexStateService().isEnabled(index)) {
		for (MouseOverHandler handler : overHandlers) {
			handler.onMouseOver(event);
		}
	}
}
 
Example 36
Project: geomajas-project-client-gwt2   File: SimpleWfsRenderer.java   Source Code and License 5 votes vote down vote up
@Override
public void onMouseOver(MouseOverEvent event) {
	if (shape instanceof Shape) {
		((Shape) shape).setFillColor("yellow");
		((Shape) shape).setStrokeColor("yellow");
		((Shape) shape).setStrokeWidth(3);
	}
}
 
Example 37
Project: geomajas-project-client-gwt2   File: CompositeGeometryIndexController.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
	if (service.getIndexStateService().isEnabled(index)) {
		for (MouseOverHandler handler : overHandlers) {
			handler.onMouseOver(event);
		}
	}
}
 
Example 38
Project: geomajas-project-client-gwt2   File: EditGeometryBaseController.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
	if (service.getEditingState() == GeometryEditState.IDLE) {
		idleController.onMouseOver(event);
	} else if (service.getEditingState() == GeometryEditState.DRAGGING) {
		dragController.onMouseOver(event);
	} else if (service.getEditingState() == GeometryEditState.INSERTING) {
		insertController.onMouseOver(event);
	}
}
 
Example 39
Project: geomajas-project-client-gwt2   File: GeometryIndexStopInsertingHandler.java   Source Code and License 5 votes vote down vote up
public void onMouseOver(MouseOverEvent event) {
	if (service.getEditingState() == GeometryEditState.INSERTING && isCorrectVertex()) {

		// Now snap the vertex to this location:
		if (service.getIndexService().getType(index) == GeometryIndexType.TYPE_VERTEX) {
			try {
				service.getIndexStateService().highlightBegin(Collections.singletonList(index));
				Coordinate location = getSnapLocation();
				service.setTentativeMoveLocation(location);
			} catch (GeometryIndexNotFoundException e) {
				throw new IllegalStateException(e);
			}
		}
	}
}
 
Example 40
Project: gwt-mousemanager   File: MouseHandlerManager.java   Source Code and License 5 votes vote down vote up
/**
 * Return Event object string identifier 
 * @param event
 * @return Type name of the event object
 */
private static String convertNativeEventToStringIdentifier(Event<?> event){
	if(event == null){
		return "";
	}
	if(event instanceof DoubleClickEvent){
		return DoubleClickEvent.getType().getName();
	}
	if(event instanceof ClickEvent){
		return ClickEvent.getType().getName();
	}		
	if(event instanceof MouseUpEvent){
		return MouseUpEvent.getType().getName();
	}
	if(event instanceof MouseDownEvent){
		return MouseDownEvent.getType().getName();
	} 
	if(event instanceof MouseMoveEvent){
		return MouseMoveEvent.getType().getName();
	}
	if(event instanceof MouseOverEvent){
		return MouseOverEvent.getType().getName();
	}
	if(event instanceof MouseOutEvent){
		return MouseOutEvent.getType().getName();
	}
	if(event instanceof MouseWheelEvent){
		return MouseWheelEvent.getType().getName();
	}
	if(event instanceof ContextMenuEvent){
		return ContextMenuEvent.getType().getName();
	}
	return "";
}