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

项目:geomajas-project-client-gwt    文件:CompositeGeometryIndexController.java   
public void onMouseOut(MouseOutEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOutHandler handler : outHandlers) {
            handler.onMouseOut(event);
        }
    }
}
项目:platypus-js    文件:EventsExecutor.java   
public void setMouseExited(JavaScriptObject aValue) {
    if (mouseExited != aValue) {
        if (mouseOutReg != null) {
            mouseOutReg.removeHandler();
            mouseOutReg = null;
        }
        mouseExited = aValue;
        if (mouseExited != null) {
            MouseOutHandler handler = new MouseOutHandler() {
                @Override
                public void onMouseOut(MouseOutEvent event) {
                    if (mouseExited != null) {
                        event.stopPropagation();
                        executeEvent(mouseExited, EventsPublisher.publish(event));
                    }
                }
            };
            if (component instanceof Widget) {
                mouseOutReg = ((Widget) component).addDomHandler(handler, MouseOutEvent.getType());
            } else if (component instanceof HasMouseOutHandlers) {
                mouseOutReg = ((HasMouseOutHandlers) component).addMouseOutHandler(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-gwt    文件:CompositeGeometryIndexController.java   
public void addMouseOutHandler(MouseOutHandler handler) {
    outHandlers.add(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 MouseOutHandler getMouseOutHandler(final Anchor anchor) {
    return new MouseOutHandler() {
        @Override
        public void onMouseOut(MouseOutEvent event) {
            anchor.removeStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
项目:WebConsole    文件:PressCancelEvent.java   
public PressCancelEvent(MouseEvent<MouseOutHandler> sourceEvent) {
    super(sourceEvent);

    clientXPos = sourceEvent.getClientX();
    clientYPos = sourceEvent.getClientY();
    screenXPos = sourceEvent.getScreenX();
    screenYPos = sourceEvent.getScreenY();
}
项目:geowe-core    文件:AnchorBuilder.java   
private MouseOutHandler getMouseOutHandler(final Anchor anchor) {
    return new MouseOutHandler() {
        @Override
        public void onMouseOut(MouseOutEvent event) {
            anchor.removeStyleName(ThemeStyles.get().style().borderBottom());
        }
    };
}
项目:appformer    文件:SideDockItemFocused.java   
private void onMouseOutHidePopup() {
    this.addDomHandler(new MouseOutHandler() {
                           public void onMouseOut(MouseOutEvent event) {
                               hide();
                           }
                       },
                       MouseOutEvent.getType());
    setAutoHideEnabled(false);
}
项目:qafe-platform    文件:EventFactory.java   
public static MouseOutHandler createOnMouseExitListener(final EventListenerGVO ev, final List<InputVariableGVO> input) {
    return new MouseOutHandler() {
        public void onMouseOut(MouseOutEvent event) {
            Map<String,String> mouseInfo = getMouseInfo(event);
            CallbackHandler.createCallBack(event.getSource(), QAMLConstants.EVENT_ONMOUSE_EXIT, ev, input, mouseInfo);
        }
    };
}
项目:test-analytics-ng    文件:CapabilitiesGridWidget.java   
/**
 * Generates a mouse out handler for a specific row and column.
 *
 * @param row the row.
 * @param column the column.
 * @return a mouse out handler.
 */
private MouseOutHandler createMouseOutHandler(final int row, final int column) {
  return new MouseOutHandler() {
    @Override
    public void onMouseOut(MouseOutEvent event) {
      mouseOut(row, column);
    }
  };
}
项目:QMAClone    文件:PopupCanvas.java   
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    eventHandlers.put(handler, (DomEvent.Type) MouseOutEvent.getType());
    if (canvas != null) {
        canvas.addDomHandler(handler, MouseOutEvent.getType());
    }
    return null;
}
项目:geomajas-project-client-gwt2    文件:CompositeGeometryIndexController.java   
public void onMouseOut(MouseOutEvent event) {
    if (service.getIndexStateService().isEnabled(index)) {
        for (MouseOutHandler handler : outHandlers) {
            handler.onMouseOut(event);
        }
    }
}
项目:unitimes    文件:P.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addHandler(handler, MouseOutEvent.getType());
}
项目:appinventor-extensions    文件:HandlerPanel.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.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 addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}
项目:mgwt-traffic-flow    文件:Canvas.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return html.addMouseOutHandler(handler);
}
项目:che    文件:PopupMenu.java   
/**
 * Initialize popup menu.
 *
 * @param actionGroup action group
 * @param presentationFactory presentation factory
 * @param lockLayer lock layer, uses as root for attaching this popup menu
 * @param actionSelectedHandler handler for action selected event
 * @param keyBindingAgent agent for key binding
 * @param itemIdPrefix id prefix of the item
 */
private void initPopupMenu(
    ActionGroup actionGroup,
    PresentationFactory presentationFactory,
    MenuLockLayer lockLayer,
    ActionSelectedHandler actionSelectedHandler,
    KeyBindingAgent keyBindingAgent,
    String itemIdPrefix) {
  this.presentationFactory = presentationFactory;
  this.keyBindingAgent = keyBindingAgent;
  this.itemIdPrefix = itemIdPrefix;
  this.lockLayer = lockLayer;
  this.actionSelectedHandler = actionSelectedHandler;

  List<Utils.VisibleActionGroup> visibleActionGroupList =
      Utils.renderActionGroup(actionGroup, presentationFactory, actionManager);

  list = new ArrayList<>();
  for (Utils.VisibleActionGroup groupActions : visibleActionGroupList) {
    list.addAll(groupActions.getActionList());
  }

  popupMenuPanel = new SimplePanel();
  disableTextSelection(popupMenuPanel.getElement(), true);
  initWidget(popupMenuPanel);

  popupMenuPanel.addDomHandler(
      new MouseOutHandler() {
        @Override
        public void onMouseOut(MouseOutEvent event) {
          closeSubPopupTimer.cancel();

          PopupMenu.this.setStyleNormal(hoveredTR);
          hoveredTR = null;

          if (subPopupAnchor != null) {
            setStyleHovered(subPopupAnchor);
          }
        }
      },
      MouseOutEvent.getType());

  popupMenuPanel.setStyleName(POPUP_RESOURCES.popup().popupMenuMain());

  hasCheckedItems = hasCheckedItems();
}
项目:r01fb    文件:TreeView.java   
@Override
public HandlerRegistration addMouseOutHandler(final MouseOutHandler handler) {
    return this.addDomHandler(handler,
                              MouseOutEvent.getType());
}
项目:firefly    文件:ThumbnailWidget.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:firefly    文件:BasicPagingImageGrid.java   
public void addMouseOutHandler(MouseOutHandler mouseOutHandler) {
    this.mouseOutHandler= mouseOutHandler;
}
项目:umlet    文件:DrawPanel.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:unitime    文件:P.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addHandler(handler, MouseOutEvent.getType());
}
项目:appformer    文件:Canvas.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return html.addMouseOutHandler(handler);
}
项目:bitcoin-transaction-explorer    文件:ContextField.java   
@Override
public HandlerRegistration addMouseOutHandler(final MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}
项目:putnami-web-toolkit    文件:AbstractInput.java   
@Override
public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return this.addDomHandler(handler, MouseOutEvent.getType());
}
项目:putnami-web-toolkit    文件:ListItem.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return this.addDomHandler(handler, MouseOutEvent.getType());
}
项目:putnami-web-toolkit    文件:Anchor.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return this.addDomHandler(handler, MouseOutEvent.getType());
}
项目:gwtoauthlogindemo    文件:ButtonCaption.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
{
    return addMouseOutHandler(handler);
}
项目:QMAClone    文件:MouseEventsCanvas.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:geomajas-project-client-gwt    文件:GraphicsWidget.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return widget.addMouseOutHandler(handler);
}
项目:geomajas-project-client-gwt2    文件:CompositeGeometryIndexController.java   
public void addMouseOutHandler(MouseOutHandler handler) {
    outHandlers.add(handler);
}
项目:geomajas-project-client-gwt2    文件:MapWidgetImpl.java   
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:gwtbootstrap3    文件:AbstractButton.java   
@Override
public HandlerRegistration addMouseOutHandler(final MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:gwtbootstrap3    文件:Label.java   
@Override
public HandlerRegistration addMouseOutHandler(final MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:open-course-organizer    文件:EventPager.java   
private HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
    return addDomHandler(handler, MouseOutEvent.getType());
}
项目:incubator-wave    文件:ToggleButtonWidget.java   
/** {@inheritDoc} */
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}
项目:incubator-wave    文件:ClickableDivPanel.java   
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}