List of usage examples for com.google.gwt.event.dom.client LoseCaptureEvent getType
public static Type<LoseCaptureHandler> getType()
From source file:org.vectomatic.dom.svg.impl.DOMHelperImpl.java
License:Open Source License
/** * Makes the specified element capture all the events, until * a call to {@link org.vectomatic.dom.svg.impl.DOMHelperImpl#releaseCaptureElement()} * terminates the capture/* w w w . ja v a 2 s . c o m*/ * @param captureElt The capturing element * @param loseCaptureHandler A handler which will be invoked * if the element loses capture * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration setCaptureElement(OMSVGElement captureElt, LoseCaptureHandler loseCaptureHandler) { init(); this.captureElt = captureElt; HandlerRegistration registration = null; if (loseCaptureHandler != null) { registration = captureElt.addHandler(loseCaptureHandler, LoseCaptureEvent.getType()); } return registration; }