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

ItineraryDetailsWidget.java 文件源码 项目:OpenTripPlanner-client-gwt 阅读 21 收藏 0 点赞 0 评论 0
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;
}
EventsExecutor.java 文件源码 项目:platypus-js 阅读 21 收藏 0 点赞 0 评论 0
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);
            }
        }
    }
}
CompositeGeometryIndexController.java 文件源码 项目:geomajas-project-client-gwt 阅读 24 收藏 0 点赞 0 评论 0
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);
    }
}
CompositeGeometryIndexController.java 文件源码 项目:geomajas-project-client-gwt2 阅读 21 收藏 0 点赞 0 评论 0
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);
    }
}
GadgetWidgetUi.java 文件源码 项目:incubator-wave 阅读 25 收藏 0 点赞 0 评论 0
@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);
}
AnchorBuilder.java 文件源码 项目:sig-seguimiento-vehiculos 阅读 25 收藏 0 点赞 0 评论 0
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
    return new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
            anchor.addStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
AnchorBuilder.java 文件源码 项目:geowe-core 阅读 27 收藏 0 点赞 0 评论 0
private MouseOverHandler getMouseOverhandler(final Anchor anchor) {
    return new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
            anchor.addStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
FloatingVisBar.java 文件源码 项目:firefly 阅读 22 收藏 0 点赞 0 评论 0
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());
}
FloatingStatusBar.java 文件源码 项目:firefly 阅读 19 收藏 0 点赞 0 评论 0
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() );
}
EventFactory.java 文件源码 项目:qafe-platform 阅读 23 收藏 0 点赞 0 评论 0
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);
        }
    };
}
CapabilitiesGridWidget.java 文件源码 项目:test-analytics-ng 阅读 23 收藏 0 点赞 0 评论 0
/**
 * 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);
    }
  };
}
PopupCanvas.java 文件源码 项目:QMAClone 阅读 31 收藏 0 点赞 0 评论 0
@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;
}
CompositeGeometryIndexController.java 文件源码 项目:geomajas-project-client-gwt 阅读 21 收藏 0 点赞 0 评论 0
public void onMouseOver(MouseOverEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOverHandler handler : overHandlers) {
            handler.onMouseOver(event);
        }
    }
}
CompositeGeometryIndexController.java 文件源码 项目:geomajas-project-client-gwt2 阅读 21 收藏 0 点赞 0 评论 0
public void onMouseOver(MouseOverEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOverHandler handler : overHandlers) {
            handler.onMouseOver(event);
        }
    }
}
P.java 文件源码 项目:unitimes 阅读 25 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addHandler(handler, MouseOverEvent.getType());
}
HandlerPanel.java 文件源码 项目:appinventor-extensions 阅读 23 收藏 0 点赞 0 评论 0
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
GadgetWidgetUi.java 文件源码 项目:Wiab.pro 阅读 23 收藏 0 点赞 0 评论 0
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
  addDomHandler(mouseOverHandler, MouseOverEvent.getType());
  addDomHandler(mouseOutHandler, MouseOutEvent.getType());
}
ToggleButtonWidget.java 文件源码 项目:Wiab.pro 阅读 21 收藏 0 点赞 0 评论 0
/** {@inheritDoc} */
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
Canvas.java 文件源码 项目:mgwt-traffic-flow 阅读 24 收藏 0 点赞 0 评论 0
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return html.addMouseOverHandler(handler);
}
TreeView.java 文件源码 项目:r01fb 阅读 25 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
    return this.addDomHandler(handler,
                              MouseOverEvent.getType());
}
ThumbnailWidget.java 文件源码 项目:firefly 阅读 21 收藏 0 点赞 0 评论 0
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
BasicPagingImageGrid.java 文件源码 项目:firefly 阅读 20 收藏 0 点赞 0 评论 0
public void addMouseOverHandler(MouseOverHandler mouseOverHandler) {
    this.mouseOverHandler= mouseOverHandler;
}
DrawPanel.java 文件源码 项目:umlet 阅读 19 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addDomHandler(handler, MouseOverEvent.getType());
}
P.java 文件源码 项目:unitime 阅读 23 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return addHandler(handler, MouseOverEvent.getType());
}
Canvas.java 文件源码 项目:appformer 阅读 19 收藏 0 点赞 0 评论 0
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return html.addMouseOverHandler(handler);
}
ContextField.java 文件源码 项目:bitcoin-transaction-explorer 阅读 23 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(final MouseOverHandler handler) {
  return addDomHandler(handler, MouseOverEvent.getType());
}
Raphael.java 文件源码 项目:hexa.tools 阅读 17 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler( MouseOverHandler handler )
{
    return addDomHandler( handler, MouseOverEvent.getType() );
}
AbstractInput.java 文件源码 项目:putnami-web-toolkit 阅读 24 收藏 0 点赞 0 评论 0
@Override
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}
ListItem.java 文件源码 项目:putnami-web-toolkit 阅读 24 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}
Anchor.java 文件源码 项目:putnami-web-toolkit 阅读 26 收藏 0 点赞 0 评论 0
@Override
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
    return this.addDomHandler(handler, MouseOverEvent.getType());
}


问题


面经


文章

微信
公众号

扫码关注公众号