Java 类com.google.gwt.event.dom.client.MouseOverHandler 实例源码

项目:OpenTripPlanner-client-gwt    文件:ItineraryDetailsWidget.java   
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;
}
项目:platypus-js    文件:EventsExecutor.java   
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);
            }
        }
    }
}
项目:geomajas-project-client-gwt    文件:CompositeGeometryIndexController.java   
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);
    }
}
项目:geomajas-project-client-gwt2    文件:CompositeGeometryIndexController.java   
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);
    }
}
项目:incubator-wave    文件:GadgetWidgetUi.java   
@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);
}
项目:sig-seguimiento-vehiculos    文件:AnchorBuilder.java   
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
    return new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
            anchor.addStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
项目:geowe-core    文件:AnchorBuilder.java   
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
    return new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
            anchor.addStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
项目:firefly    文件:FloatingVisBar.java   
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());
}
项目:firefly    文件:FloatingStatusBar.java   
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() );
}
项目:qafe-platform    文件:EventFactory.java   
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);
        }
    };
}
项目:test-analytics-ng    文件:CapabilitiesGridWidget.java   
/**
 * 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);
    }
  };
}
项目:QMAClone    文件:PopupCanvas.java   
@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;
}
项目:geomajas-project-client-gwt    文件:CompositeGeometryIndexController.java   
public void onMouseOver(MouseOverEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOverHandler handler : overHandlers) {
            handler.onMouseOver(event);
        }
    }
}
项目:geomajas-project-client-gwt2    文件:CompositeGeometryIndexController.java   
public void onMouseOver(MouseOverEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOverHandler handler : overHandlers) {
            handler.onMouseOver(event);
        }
    }
}
项目:unitimes    文件:P.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addHandler(handler, MouseOverEvent.getType());
}
项目:appinventor-extensions    文件:HandlerPanel.java   
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
项目:Wiab.pro    文件:GadgetWidgetUi.java   
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
  addDomHandler(mouseOverHandler, MouseOverEvent.getType());
  addDomHandler(mouseOutHandler, MouseOutEvent.getType());
}
项目:Wiab.pro    文件:ToggleButtonWidget.java   
/** {@inheritDoc} */
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
项目:mgwt-traffic-flow    文件:Canvas.java   
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return html.addMouseOverHandler(handler);
}
项目:r01fb    文件:TreeView.java   
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return this.addDomHandler(handler,
                              MouseOverEvent.getType());
}
项目:firefly    文件:ThumbnailWidget.java   
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:firefly    文件:BasicPagingImageGrid.java   
public void addMouseOverHandler(MouseOverHandler mouseOverHandler) {
    this.mouseOverHandler= mouseOverHandler;
}
项目:umlet    文件:DrawPanel.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:unitime    文件:P.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addHandler(handler, MouseOverEvent.getType());
}
项目:appformer    文件:Canvas.java   
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return html.addMouseOverHandler(handler);
}
项目:bitcoin-transaction-explorer    文件:ContextField.java   
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
项目:hexa.tools    文件:Raphael.java   
@Override
public HandlerRegistration addMouseOverHandler( MouseOverHandler handler )
{
    return addDomHandler( handler, MouseOverEvent.getType() );
}
项目:putnami-web-toolkit    文件:AbstractInput.java   
@Override
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}
项目:putnami-web-toolkit    文件:ListItem.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}
项目:putnami-web-toolkit    文件:Anchor.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}
项目:gwtoauthlogindemo    文件:ButtonCaption.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
{
    return addMouseOverHandler(handler);
}
项目:QMAClone    文件:MouseEventsCanvas.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:geomajas-project-client-gwt    文件:CompositeGeometryIndexController.java   
public void addMouseOverHandler(MouseOverHandler handler) {
    overHandlers.add(handler);
}
项目:geomajas-project-client-gwt    文件:GraphicsWidget.java   
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return widget.addMouseOverHandler(handler);
}
项目:geomajas-project-client-gwt2    文件:CompositeGeometryIndexController.java   
public void addMouseOverHandler(MouseOverHandler handler) {
    overHandlers.add(handler);
}
项目:gwtbootstrap3    文件:AbstractButton.java   
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:gwtbootstrap3    文件:Label.java   
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:open-course-organizer    文件:EventPager.java   
private HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
项目:incubator-wave    文件:ToggleButtonWidget.java   
/** {@inheritDoc} */
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
项目:incubator-wave    文件:ClickableDivPanel.java   
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}