當前位置: 首頁>>代碼示例>>Java>>正文


Java MouseOutEvent類代碼示例

本文整理匯總了Java中com.google.gwt.event.dom.client.MouseOutEvent的典型用法代碼示例。如果您正苦於以下問題:Java MouseOutEvent類的具體用法?Java MouseOutEvent怎麽用?Java MouseOutEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MouseOutEvent類屬於com.google.gwt.event.dom.client包,在下文中一共展示了MouseOutEvent類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onMouseOut

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
public void onMouseOut(MouseOutEvent event) {
	if (service.getIndexStateService().isEnabled(index)) {
		for (MouseOutHandler handler : outHandlers) {
			handler.onMouseOut(event);
		}
	}
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt,代碼行數:8,代碼來源:CompositeGeometryIndexController.java

示例2: onMouseOut

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
@Override
public void onMouseOut(MouseOutEvent event) {
	if (controller != null) {
		controller.onMouseOut(event);
		if (!controller.isBusy()) {
			panController.onMouseOut(event);
		}
	} else {
		panController.onMouseOut(event);
	}
}
 
開發者ID:geomajas,項目名稱:geomajas-project-client-gwt,代碼行數:12,代碼來源:ParentEditController.java

示例3: ConsoleDisplay

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
public ConsoleDisplay() {
	super(new AbsolutePanel(), CLASS_NAME);
	getElement().setId("consoleDisplayWrapper");
	
	// Create display panel where screen is actually loaded
	display = new AbsolutePanel();
	display.addStyleName("portrait");
	display.getElement().setId("consoleDisplay");
	
	// Add display to the wrapper
	((AbsolutePanel)getWidget()).add(display, 0, 0);
			
	// Add move handlers which are only used on this display component
	if(BrowserUtils.isMobile) {
		this.addDomHandler(this, TouchMoveEvent.getType());
	} else {
		this.addDomHandler(this, MouseMoveEvent.getType());
		this.addDomHandler(this, MouseOutEvent.getType());
	}
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:21,代碼來源:ConsoleDisplay.java

示例4: registerHandlers

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
private void registerHandlers() {
	if(BrowserUtils.isMobile) {
		registerHandler(this.addDomHandler(this, TouchStartEvent.getType()));
		registerHandler(this.addDomHandler(this, TouchEndEvent.getType()));
	} else {
		registerHandler(this.addDomHandler(this, MouseDownEvent.getType()));
		registerHandler(this.addDomHandler(this, MouseUpEvent.getType()));
		registerHandler(this.addDomHandler(this, MouseOutEvent.getType()));
	}
	registerHandler(this.addHandler(this, DragStartEvent.getType()));
	registerHandler(this.addHandler(this, DragMoveEvent.getType()));
	registerHandler(this.addHandler(this, DragEndEvent.getType()));
	registerHandler(this.addHandler(this, DragCancelEvent.getType()));
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:15,代碼來源:ListPanelComponent.java

示例5: createSystemTabItem

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
private TabBarItemComponent createSystemTabItem(EnumSystemTabItemType itemType) {
	TabBarItem tabBarItem = null;
	TabBarItemComponent component = null;
	AutoBean<TabBarItem> TabBarItemBean = AutoBeanService.getInstance().getFactory().tabBarItem();
	tabBarItem = TabBarItemBean.as();
	switch (itemType) {
		case PREVIOUS:
			tabBarItem.setName("<");
			break;
		case NEXT:
			tabBarItem.setName(">");
			break;
	}
	component = new TabBarItemComponent(tabBarItem, itemType);
	// Add handlers as not created by usual mechanism
	if(BrowserUtils.isMobile) {
		systemTabHandlers.add(component.addDomHandler(this, TouchStartEvent.getType()));
		systemTabHandlers.add(component.addDomHandler(this, TouchEndEvent.getType()));
	} else {
		systemTabHandlers.add(component.addDomHandler(this, MouseDownEvent.getType()));
		systemTabHandlers.add(component.addDomHandler(this, MouseUpEvent.getType()));
		systemTabHandlers.add(component.addDomHandler(this, MouseOutEvent.getType()));
	}
	systemTabHandlers.add(component.addHandler(component, TapEvent.getType()));
	return component;
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:27,代碼來源:TabBarComponent.java

示例6: ConsoleButtonImpl

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
@Inject
public ConsoleButtonImpl(
    ButtonResources resources,
    TooltipWidget tooltip,
    @NotNull @Assisted String prompt,
    @NotNull @Assisted SVGResource image) {
  this.resources = resources;
  this.tooltip = tooltip;
  this.tooltip.setDescription(prompt);

  resources.buttonCss().ensureInjected();

  initWidget(UI_BINDER.createAndBindUi(this));

  icon = new SVGImage(image);
  icon.getElement().setAttribute("class", resources.buttonCss().mainButtonIcon());

  setCheckedStatus(false);

  addDomHandler(this, ClickEvent.getType());
  addDomHandler(this, MouseOutEvent.getType());
  addDomHandler(this, MouseOverEvent.getType());
}
 
開發者ID:eclipse,項目名稱:che,代碼行數:24,代碼來源:ConsoleButtonImpl.java

示例7: onMouseOut

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
public void onMouseOut(MouseOutEvent event) {
    Widget widget = (Widget) event.getSource();
    if (doHilite) {
        GwtUtil.setStyle(widget, "backgroundColor", normalBackground);
        GwtUtil.setStyle(widget, "border", "1px solid " + normalBackground);
    }
    mouseOverTimer.cancel();
}
 
開發者ID:lsst,項目名稱:firefly,代碼行數:9,代碼來源:BasicImageGrid.java

示例8: setMouseExited

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
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);
			}
		}
	}
}
 
開發者ID:marat-gainullin,項目名稱:platypus-js,代碼行數:26,代碼來源:EventsExecutor.java

示例9: bindHandlers

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
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;
	}
}
 
開發者ID:Putnami,項目名稱:putnami-web-toolkit,代碼行數:22,代碼來源:AbstractHover.java

示例10: setAutoPlay

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
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();
	}
}
 
開發者ID:Putnami,項目名稱:putnami-web-toolkit,代碼行數:12,代碼來源:Carousel.java

示例11: addHandlers

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
@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);
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:17,代碼來源:GadgetWidgetUi.java

示例12: updateEventCaches

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
/**
 * Update event caches to keep track of the latest event of each instance.
 * @param the event to cache
 */
private void updateEventCaches(Event<?> event){
	if(event == null){
		return;
	}
	if(event instanceof DoubleClickEvent){
		doubleClickEvent = new org.gz.gwt.mousemanager.client.event.DoubleClickEvent((DoubleClickEvent)event, target);
	}
	if(event instanceof ClickEvent){
		clickEvent = new org.gz.gwt.mousemanager.client.event.ClickEvent((ClickEvent)event, target);
	}		
	if(event instanceof MouseUpEvent){
		mouseUpEvent = new org.gz.gwt.mousemanager.client.event.MouseUpEvent((MouseUpEvent)event, target);
	}
	if(event instanceof MouseDownEvent){
		mouseDownEvent = new org.gz.gwt.mousemanager.client.event.MouseDownEvent((MouseDownEvent)event, target);
	} 
	if(event instanceof MouseMoveEvent){
		mouseMoveEvent = new org.gz.gwt.mousemanager.client.event.MouseMoveEvent((MouseMoveEvent)event, target);
	}
	if(event instanceof MouseOverEvent){
		mouseOverEvent = new org.gz.gwt.mousemanager.client.event.MouseOverEvent((MouseOverEvent)event, target);
	}
	if(event instanceof MouseOutEvent){
		mouseOutEvent = new org.gz.gwt.mousemanager.client.event.MouseOutEvent((MouseOutEvent)event, target);
	}
	if(event instanceof MouseWheelEvent){
		mouseWheelEvent = new org.gz.gwt.mousemanager.client.event.MouseWheelEvent((MouseWheelEvent)event, target);
	}
	if(event instanceof ContextMenuEvent){
		contextMenuEvent = new org.gz.gwt.mousemanager.client.event.ContextMenuEvent();
	}
}
 
開發者ID:gzussa,項目名稱:gwt-mousemanager,代碼行數:37,代碼來源:MouseHandlerManager.java

示例13: onMouseOut

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
public void onMouseOut(final MouseOutEvent event)
{
   HighlightedResult widget = (HighlightedResult) event.getSource();
   HighlightedGroup group = widget.getHighlightedGroup();

   widget.setMouseOverEvent(null);
   if (group.getGroup() != null)
   {
      area.setSelectionRange(0, 0);

      Widget parent = widget.getParent();
      while (parent instanceof HighlightedResult)
      {
         MouseOverEvent mouseOverEvent = ((HighlightedResult) parent).getMouseOverEvent();
         if (mouseOverEvent != null)
         {
            final Widget finalParent = parent;
            onMouseOver(new MouseOverEvent() {
               @Override
               public Object getSource()
               {
                  return finalParent;
               }
            });
            break;
         }
         else
            parent = parent.getParent();
      }
   }
}
 
開發者ID:ocpsoft,項目名稱:regex-tester,代碼行數:32,代碼來源:ResultMouseOverHandler.java

示例14: getMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
private MouseOutHandler getMouseOutHandler(final Anchor anchor) {
	return new MouseOutHandler() {
		@Override
		public void onMouseOut(MouseOutEvent event) {
			anchor.removeStyleName(ThemeStyles.get().style().borderBottom());
		}
	};
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:9,代碼來源:AnchorBuilder.java

示例15: registerHandlers

import com.google.gwt.event.dom.client.MouseOutEvent; //導入依賴的package包/類
private void registerHandlers() {
	if(BrowserUtils.isMobile) {
		registerHandler(this.addDomHandler(this, TouchStartEvent.getType()));
		registerHandler(this.addDomHandler(this, TouchEndEvent.getType()));
		registerHandler(this.addDomHandler(this, TouchMoveEvent.getType()));
	} else {
		registerHandler(this.addDomHandler(this, MouseDownEvent.getType()));
		registerHandler(this.addDomHandler(this, MouseUpEvent.getType()));
		registerHandler(this.addDomHandler(this, MouseOutEvent.getType()));
		registerHandler(this.addDomHandler(this, MouseMoveEvent.getType()));
	}
}
 
開發者ID:openremote,項目名稱:WebConsole,代碼行數:13,代碼來源:ListItem.java


注:本文中的com.google.gwt.event.dom.client.MouseOutEvent類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。