com.google.gwt.event.dom.client.MouseOutEvent Java Examples
The following examples show how to use
com.google.gwt.event.dom.client.MouseOutEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractHover.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 6 votes |
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 #2
Source File: GadgetWidgetUi.java From swellrt with Apache License 2.0 | 6 votes |
@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 #3
Source File: GadgetWidgetUi.java From incubator-retired-wave with Apache License 2.0 | 6 votes |
@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 #4
Source File: GwtToolWindowStripeButton.java From consulo with Apache License 2.0 | 5 votes |
public void doLayout() { HorizontalPanel widget = new HorizontalPanel(); widget.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); widget.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); widget.setHeight("100%"); setWidget(widget); sinkEvents(Event.ONCLICK | Event.ONFOCUS); addDomHandler(event -> { myFocus = true; updateBackgroundColor(); }, MouseOverEvent.getType()); addDomHandler(event -> { myFocus = false; updateBackgroundColor(); }, MouseOutEvent.getType()); addDomHandler(event -> { if (myClickListener != null) { myClickListener.run(); } }, ClickEvent.getType()); if (isVertical()) { setVerticalText(); } }
Example #5
Source File: ContextFieldSet.java From bitcoin-transaction-explorer with MIT License | 5 votes |
@Override public void onMouseOut(final MouseOutEvent event) { if (selectedField == null) { popupShowTimer.cancel(); delayedHide(); } }
Example #6
Source File: Carousel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
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 #7
Source File: AnchorBuilder.java From geowe-core with GNU General Public License v3.0 | 5 votes |
private MouseOutHandler getMouseOutHandler(final Anchor anchor) { return new MouseOutHandler() { @Override public void onMouseOut(MouseOutEvent event) { anchor.removeStyleName(ThemeStyles.get().style().borderBottom()); } }; }
Example #8
Source File: IconButtonTemplate.java From incubator-retired-wave with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent event) { mouseListener.onMouseLeave(); }
Example #9
Source File: ToggleButtonWidget.java From incubator-retired-wave with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); }
Example #10
Source File: Anchor.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return this.addDomHandler(handler, MouseOutEvent.getType()); }
Example #11
Source File: Carousel.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent event) { if (this.pauseOnHover && this.autoPlay) { this.autoPlayTimer.scheduleRepeating(this.timerDelay); } }
Example #12
Source File: ClickableDivPanel.java From incubator-retired-wave with Apache License 2.0 | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); }
Example #13
Source File: ListItem.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return this.addDomHandler(handler, MouseOutEvent.getType()); }
Example #14
Source File: AbstractInput.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return this.addDomHandler(handler, MouseOutEvent.getType()); }
Example #15
Source File: GwtTabbedLayoutImpl.java From consulo with Apache License 2.0 | 4 votes |
public void setTabs(int index, Map<TabbedLayoutState.TabState, Widget> map) { clear(); for (Map.Entry<TabbedLayoutState.TabState, Widget> entry : map.entrySet()) { TabbedLayoutState.TabState state = entry.getKey(); GwtHorizontalLayoutImpl tabWidget = GwtComboBoxImplConnector.buildItem(state); if (state.myCloseButton != null) { SimplePanel closeButton = new SimplePanel(); tabWidget.add(closeButton); tabWidget.setCellHorizontalAlignment(closeButton, HasHorizontalAlignment.ALIGN_RIGHT); Widget closeIcon = ImageConverter.create(state.myCloseButton); closeButton.setWidget(closeIcon); Widget closeHoveredIcon = ImageConverter.create(state.myCloseHoverButton); closeButton.addDomHandler(event -> { closeButton.setWidget(closeHoveredIcon); }, MouseOverEvent.getType()); closeButton.addDomHandler(event -> { closeButton.setWidget(closeIcon); }, MouseOutEvent.getType()); closeButton.addDomHandler(event -> { if (myCloseHandler != null) { int idx = getWidgetIndex(entry.getValue()); if (idx != -1) { myCloseHandler.accept(idx); } } }, ClickEvent.getType()); } else { tabWidget.addStyleName("gwt-TabBarItem-no-close-button"); } add(entry.getValue(), tabWidget); } selectTab(index); }
Example #16
Source File: AbstractHover.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent event) { if (AbstractHover.this.visibilityChange == Visibility.SHOW) { AbstractHover.this.schedule(AbstractHover.this.getHideDelay(), Visibility.HIDE); } }
Example #17
Source File: ContextField.java From bitcoin-transaction-explorer with MIT License | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(final MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); }
Example #18
Source File: ClickableDivPanel.java From swellrt with Apache License 2.0 | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); }
Example #19
Source File: CirSim.java From circuitjs1 with GNU General Public License v2.0 | 4 votes |
public void onMouseOut(MouseOutEvent e) { mouseCursorX=-1; }
Example #20
Source File: ToggleButtonWidget.java From swellrt with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addDomHandler(handler, MouseOutEvent.getType()); }
Example #21
Source File: IconButtonTemplate.java From swellrt with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent event) { mouseListener.onMouseLeave(); }
Example #22
Source File: UIHider.java From djvu-html5 with GNU General Public License v2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent event) { isMouseOverUI = false; }
Example #23
Source File: UIHider.java From djvu-html5 with GNU General Public License v2.0 | 4 votes |
public void addUIElement(Widget widget, String hiddenStyleName) { uiElements.add(new UIElement(widget, hiddenStyleName)); widget.addDomHandler(this, MouseOverEvent.getType()); widget.addDomHandler(this, MouseOutEvent.getType()); }
Example #24
Source File: P.java From unitime with Apache License 2.0 | 4 votes |
@Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addHandler(handler, MouseOutEvent.getType()); }
Example #25
Source File: AssignmentTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { RoomHint.hideHint(); }
Example #26
Source File: AssignmentTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { RoomHint.hideHint(); }
Example #27
Source File: AssignmentTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { RoomHint.hideHint(); }
Example #28
Source File: AssignmentTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { TimeHint.hideHint(); }
Example #29
Source File: SuggestionsTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { RoomHint.hideHint(); }
Example #30
Source File: SuggestionsTable.java From unitime with Apache License 2.0 | 4 votes |
@Override public void onMouseOut(MouseOutEvent e) { RoomHint.hideHint(); }