Package org.gwtopenmaps.openlayers.client.event

Examples of org.gwtopenmaps.openlayers.client.event.EventHandler


            }
        });
    }

    public void addLayerVisibilityChangedListener(final LayerVisibilityChangedListener listener) {
        eventListeners.addListener(this, listener, EventType.LAYER_VISIBILITYCHANGED, new EventHandler() {
            public void onHandle(EventObject eventObject) {
                VisibilityChangedEvent e = new VisibilityChangedEvent(eventObject);
                listener.onVisibilityChanged(e);
            }
        });
View Full Code Here


        return Bounds.narrowToBounds(BoxImpl.getBounds(getJSObject()));
    }

    public void addBoxEventListener(String Event, final BoxEventListener listener)
    {
        eventListeners.addListener(this, listener, Event, new EventHandler()
            {
                public void onHandle(EventObject eventObject)
                {
                    BoxEvents e = new BoxEvents(eventObject);
                    listener.onBox(e);
View Full Code Here

        MeasureImpl.setPersist(getJSObject(), persist);
    }

    public void addMeasureListener(final MeasureListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_MEASURE, new EventHandler()
            {
                public void onHandle(EventObject eventObject)
                {
                    MeasureEvent e = new MeasureEvent(eventObject);
                    listener.onMeasure(e);
View Full Code Here

            });
    }

    public void addMeasurePartialListener(final MeasurePartialListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_MEASURE_PARTIAL, new EventHandler()
            {
                public void onHandle(EventObject eventObject)
                {
                    MeasureEvent e = new MeasureEvent(eventObject);
                    listener.onMeasurePartial(e);
View Full Code Here

    public void addVectorFeatureModifiedListener(
            final VectorFeatureModifiedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_FEATURE_MODIFIED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                FeatureModifiedEvent e = new FeatureModifiedEvent(eventObject);
                listener.onFeatureModified(e);
            }
View Full Code Here

    public void addVectorFeatureAddedListener(
            final VectorFeatureAddedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_FEATURE_ADDED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                FeatureAddedEvent e = new FeatureAddedEvent(eventObject);
                listener.onFeatureAdded(e);
            }
View Full Code Here

    public void addVectorFeatureRemovedListener(
            final VectorFeatureRemovedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_FEATURE_REMOVED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                FeatureRemovedEvent e = new FeatureRemovedEvent(eventObject);
                listener.onFeatureRemoved(e);
            }
View Full Code Here

    public void addVectorFeatureSelectedListener(
            final VectorFeatureSelectedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_FEATURE_SELECTED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                FeatureSelectedEvent e = new FeatureSelectedEvent(eventObject);
                listener.onFeatureSelected(e);
            }
View Full Code Here

    public void addVectorFeatureUnselectedListener(
            final VectorFeatureUnselectedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_FEATURE_UNSELECTED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                FeatureUnselectedEvent e = new FeatureUnselectedEvent(
                        eventObject);
                listener.onFeatureUnselected(e);
View Full Code Here

    public void addVectorBeforeFeatureAddedListener(
            final VectorBeforeFeatureAddedListener listener) {
        eventListeners.addListener(this, listener,
                                   EventType.VECTOR_BEFORE_FEATURE_ADDED,
                                   new EventHandler() {
            @Override
            public void onHandle(EventObject eventObject) {
                BeforeFeatureAddedEvent e = new BeforeFeatureAddedEvent(
                        eventObject);
                listener.onBeforeFeatureAdded(e);
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.event.EventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.