當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。