org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client;
import java.util.Set;
import org.gwtopenmaps.openlayers.client.event.EventListener;
import org.gwtopenmaps.openlayers.client.event.EventListenerCollection;
import org.gwtopenmaps.openlayers.client.util.JSObject;
/**
* Wrapper object for OpenLayer objects.
*
* @author Erdem Gunay
* @author Edwin Commandeur
*
*/
public class OpenLayersEObjectWrapper extends OpenLayersObjectWrapper {
protected EventListenerCollection eventListeners = new EventListenerCollection();
protected OpenLayersEObjectWrapper(JSObject openLayersObject) {
super(openLayersObject);
}
public static OpenLayersEObjectWrapper narrowToOpenLayersEObjectWrapper(JSObject element) {
return (element == null)?null: new OpenLayersEObjectWrapper(element);
}
public void removeListener(EventListener listener){
eventListeners.removeListener(this, listener);
};
public Set getListeners(){
return eventListeners.getListeners();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy