All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.swm.gwt.client.responsive.JsHandlerRegistration Maven / Gradle / Ivy

The newest version!
package de.swm.gwt.client.responsive;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.shared.HandlerRegistration;

/**
 * @author Ed Bras
 */
class JsHandlerRegistration extends JavaScriptObject implements HandlerRegistration {

	// Required by GWT.
	protected JsHandlerRegistration() {
	}

	public final void removeHandler() {
		removeHandlerIntern();
	}

	private native JavaScriptObject getCallback() /*-{ return this.callback; }-*/;

	private native void removeHandlerIntern() /*-{ this.match.removeListener(this.callback); }-*/;

	private native JsMatchMedia getMatchMedia() /*-{ return this.match; }-*/;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy