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

The following are top voted examples for showing how to use com.google.gwt.event.dom.client.MouseOverHandler. 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: 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 2
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 3
Project: geomajas-project-client-gwt   File: CompositeGeometryIndexController.java   Source Code and License 6 votes vote down vote up
public void addMapHandler(AbstractGeometryIndexMapHandler handler) {
	handler.setIndex(index);
	handler.setService(service);
	handler.setEventParser(this);
	if (handler instanceof MapDownHandler) {
		downHandlers.add((MapDownHandler) handler);
	}
	if (handler instanceof MapUpHandler) {
		upHandlers.add((MapUpHandler) handler);
	}
	if (handler instanceof MapDragHandler) {
		dragHandlers.add((MapDragHandler) handler);
	}
	if (handler instanceof MouseOverHandler) {
		overHandlers.add((MouseOverHandler) handler);
	}
	if (handler instanceof MouseOutHandler) {
		outHandlers.add((MouseOutHandler) handler);
	}
	if (handler instanceof MouseMoveHandler) {
		moveHandlers.add((MouseMoveHandler) handler);
	}
	if (handler instanceof DoubleClickHandler) {
		doubleClickHandlers.add((DoubleClickHandler) handler);
	}
}
 
Example 4
Project: geomajas-project-client-gwt2   File: CompositeGeometryIndexController.java   Source Code and License 6 votes vote down vote up
public void addMapHandler(AbstractGeometryIndexMapHandler handler) {
	handler.setIndex(index);
	handler.setService(service);
	handler.setEventParser(this);
	if (handler instanceof MapDownHandler) {
		downHandlers.add((MapDownHandler) handler);
	}
	if (handler instanceof MapUpHandler) {
		upHandlers.add((MapUpHandler) handler);
	}
	if (handler instanceof MapDragHandler) {
		dragHandlers.add((MapDragHandler) handler);
	}
	if (handler instanceof MouseOverHandler) {
		overHandlers.add((MouseOverHandler) handler);
	}
	if (handler instanceof MouseOutHandler) {
		outHandlers.add((MouseOutHandler) handler);
	}
	if (handler instanceof MouseMoveHandler) {
		moveHandlers.add((MouseMoveHandler) handler);
	}
	if (handler instanceof DoubleClickHandler) {
		doubleClickHandlers.add((DoubleClickHandler) handler);
	}
}
 
Example 5
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 6
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 7
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 8
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 9
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 10
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 11
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 12
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 13
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 14
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 15
Project: unitimes   File: P.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return addHandler(handler, MouseOverEvent.getType());
}
 
Example 16
Project: appinventor-extensions   File: HandlerPanel.java   Source Code and License 4 votes vote down vote up
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 17
Project: Wiab.pro   File: GadgetWidgetUi.java   Source Code and License 4 votes vote down vote up
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
  addDomHandler(mouseOverHandler, MouseOverEvent.getType());
  addDomHandler(mouseOutHandler, MouseOutEvent.getType());
}
 
Example 18
Project: Wiab.pro   File: ToggleButtonWidget.java   Source Code and License 4 votes vote down vote up
/** {@inheritDoc} */
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 19
Project: mgwt-traffic-flow   File: Canvas.java   Source Code and License 4 votes vote down vote up
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return html.addMouseOverHandler(handler);
}
 
Example 20
Project: r01fb   File: TreeView.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
	return this.addDomHandler(handler,
							  MouseOverEvent.getType());
}
 
Example 21
Project: firefly   File: ThumbnailWidget.java   Source Code and License 4 votes vote down vote up
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 22
Project: firefly   File: BasicPagingImageGrid.java   Source Code and License 4 votes vote down vote up
public void addMouseOverHandler(MouseOverHandler mouseOverHandler) {
    this.mouseOverHandler= mouseOverHandler;
}
 
Example 23
Project: umlet   File: DrawPanel.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 24
Project: unitime   File: P.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return addHandler(handler, MouseOverEvent.getType());
}
 
Example 25
Project: appformer   File: Canvas.java   Source Code and License 4 votes vote down vote up
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return html.addMouseOverHandler(handler);
}
 
Example 26
Project: bitcoin-transaction-explorer   File: ContextField.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 27
Project: hexa.tools   File: Raphael.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler( MouseOverHandler handler )
{
	return addDomHandler( handler, MouseOverEvent.getType() );
}
 
Example 28
Project: putnami-web-toolkit   File: AbstractInput.java   Source Code and License 4 votes vote down vote up
@Override
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return this.addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 29
Project: putnami-web-toolkit   File: ListItem.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return this.addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 30
Project: putnami-web-toolkit   File: Anchor.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return this.addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 31
Project: gwtoauthlogindemo   File: ButtonCaption.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
{
    return addMouseOverHandler(handler);
}
 
Example 32
Project: QMAClone   File: MouseEventsCanvas.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 33
Project: geomajas-project-client-gwt   File: CompositeGeometryIndexController.java   Source Code and License 4 votes vote down vote up
public void addMouseOverHandler(MouseOverHandler handler) {
	overHandlers.add(handler);
}
 
Example 34
Project: geomajas-project-client-gwt   File: GraphicsWidget.java   Source Code and License 4 votes vote down vote up
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return widget.addMouseOverHandler(handler);
}
 
Example 35
Project: geomajas-project-client-gwt2   File: CompositeGeometryIndexController.java   Source Code and License 4 votes vote down vote up
public void addMouseOverHandler(MouseOverHandler handler) {
	overHandlers.add(handler);
}
 
Example 36
Project: gwtbootstrap3   File: AbstractButton.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 37
Project: gwtbootstrap3   File: Label.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 38
Project: open-course-organizer   File: EventPager.java   Source Code and License 4 votes vote down vote up
private HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
	return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 39
Project: incubator-wave   File: ToggleButtonWidget.java   Source Code and License 4 votes vote down vote up
/** {@inheritDoc} */
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
 
Example 40
Project: incubator-wave   File: ClickableDivPanel.java   Source Code and License 4 votes vote down vote up
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}