当前位置: 首页>>代码示例>>Java>>正文


Java MouseOutHandler类代码示例

本文整理汇总了Java中com.google.gwt.event.dom.client.MouseOutHandler的典型用法代码示例。如果您正苦于以下问题:Java MouseOutHandler类的具体用法?Java MouseOutHandler怎么用?Java MouseOutHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MouseOutHandler类属于com.google.gwt.event.dom.client包,在下文中一共展示了MouseOutHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onMouseOut

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的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: setMouseExited

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的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

示例3: addMapHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
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);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:27,代码来源:CompositeGeometryIndexController.java

示例4: addMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
public void addMouseOutHandler(MouseOutHandler handler) {
	outHandlers.add(handler);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:4,代码来源:CompositeGeometryIndexController.java

示例5: addHandlers

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的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

示例6: getMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的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

示例7: PressCancelEvent

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
public PressCancelEvent(MouseEvent<MouseOutHandler> sourceEvent) {
	super(sourceEvent);
	
	clientXPos = sourceEvent.getClientX();
	clientYPos = sourceEvent.getClientY();
	screenXPos = sourceEvent.getScreenX();
	screenYPos = sourceEvent.getScreenY();
}
 
开发者ID:openremote,项目名称:WebConsole,代码行数:9,代码来源:PressCancelEvent.java

示例8: onMouseOutHidePopup

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
private void onMouseOutHidePopup() {
    this.addDomHandler(new MouseOutHandler() {
                           public void onMouseOut(MouseOutEvent event) {
                               hide();
                           }
                       },
                       MouseOutEvent.getType());
    setAutoHideEnabled(false);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:10,代码来源:SideDockItemFocused.java

示例9: createOnMouseExitListener

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
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);
		}
	};
}
 
开发者ID:qafedev,项目名称:qafe-platform,代码行数:9,代码来源:EventFactory.java

示例10: createMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
/**
 * 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);
    }
  };
}
 
开发者ID:rodion-goritskov,项目名称:test-analytics-ng,代码行数:16,代码来源:CapabilitiesGridWidget.java

示例11: addMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
@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;
}
 
开发者ID:nodchip,项目名称:QMAClone,代码行数:10,代码来源:PopupCanvas.java

示例12: addMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
	return addHandler(handler, MouseOutEvent.getType());
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:5,代码来源:P.java

示例13: addMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}
 
开发者ID:mit-cml,项目名称:appinventor-extensions,代码行数:4,代码来源:HandlerPanel.java

示例14: addHandlers

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
@Override
public void addHandlers(MouseOverHandler mouseOverHandler, MouseOutHandler mouseOutHandler) {
  addDomHandler(mouseOverHandler, MouseOverEvent.getType());
  addDomHandler(mouseOutHandler, MouseOutEvent.getType());
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:GadgetWidgetUi.java

示例15: addMouseOutHandler

import com.google.gwt.event.dom.client.MouseOutHandler; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
  return addDomHandler(handler, MouseOutEvent.getType());
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:ToggleButtonWidget.java


注:本文中的com.google.gwt.event.dom.client.MouseOutHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。