List of usage examples for com.google.gwt.event.dom.client LoseCaptureHandler LoseCaptureHandler
LoseCaptureHandler
From source file:org.vectomatic.dom.svg.ui.SVGPushButton.java
License:Open Source License
public void onMouseDown(MouseDownEvent event) { // GWT.log("onMouseDown"); if (isEnabled()) { DOMHelper.setCaptureElement(svgElement, new LoseCaptureHandler() { @Override/* ww w.j a v a2 s .c om*/ public void onLoseCapture(LoseCaptureEvent event) { cancelTimer(); } }); if (repeatDelayMillis > 0 && timer == null) { timer = new CustomerTimer(new EventClone(event)); timer.scheduleRepeating(repeatDelayMillis); } showFace(SVGFaceName.DOWN_HOVERING); } event.stopPropagation(); event.preventDefault(); }