当前位置: 首页>>代码示例>>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;未经允许,请勿转载。