Example usage for com.google.gwt.event.dom.client LoseCaptureEvent getType

List of usage examples for com.google.gwt.event.dom.client LoseCaptureEvent getType

Introduction

In this page you can find the example usage for com.google.gwt.event.dom.client LoseCaptureEvent getType.

Prototype

public static Type<LoseCaptureHandler> getType() 

Source Link

Document

Gets the event type associated with lose capture events.

Usage

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;
}