Package org.gwtopenmaps.openlayers.client.event

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


        this.selectHandler = selectHandler;
    }

    private void addSelectEvent(Marker marker, final Position position) {
        if (selectHandler != null) {
            marker.getEvents().register("click", marker, new EventHandler() {
                @Override
                public void onHandle(EventObject eventObject) {
                    selectHandler.onSelected(position);
                }
            });
            marker.getEvents().register("mouseover", marker, new EventHandler() {
                @Override
                public void onHandle(EventObject eventObject) {
                    RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.SE_RESIZE);
                }
            });
            marker.getEvents().register("mouseout", marker, new EventHandler() {
                @Override
                public void onHandle(EventObject eventObject) {
                    RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.AUTO);
                }
            });
View Full Code Here


        this(WMSGetFeatureInfoImpl.create(o.getJSObject()));
    }

    public void addBeforeGetFeatureListener(final BeforeGetFeatureInfoListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_GET_FEATURE_INFO_BEFORE, new EventHandler()
            {
                @Override
                public void onHandle(EventObject eventObject)
                {
                    BeforeGetFeatureInfoEvent e = new BeforeGetFeatureInfoEvent(eventObject);
View Full Code Here

            });
    }

    public void addGetFeatureListener(final GetFeatureInfoListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_GET_FEATURE_INFO, new EventHandler()
            {
                @Override
                public void onHandle(EventObject eventObject)
                {
                    GetFeatureInfoEvent e = new GetFeatureInfoEvent(eventObject);
View Full Code Here

            });
    }

    public void addNoGetFeatureListener(final NoGetFeatureInfoListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_NO_GET_FEATURE_INFO, new EventHandler()
            {

                @Override
                public void onHandle(EventObject eventObject)
                {
View Full Code Here

        return ControlImpl.deactivate(getJSObject());
    }

    public void addControlActivateListener(final ControlActivateListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_ACTIVATE, new EventHandler()
            {
                public void onHandle(EventObject eventObject)
                {
                    ControlActivateEvent e = new ControlActivateEvent(eventObject);
                    listener.onActivate(e);
View Full Code Here

            });
    }

    public void addControlDeactivateListener(final ControlDeactivateListener listener)
    {
        eventListeners.addListener(this, listener, EventType.CONTROL_DEACTIVATE, new EventHandler()
            {
                public void onHandle(EventObject eventObject)
                {
                    ControlDeactivateEvent e = new ControlDeactivateEvent(eventObject);
                    listener.onDeactivate(e);
View Full Code Here

  public void setImageUrl(String imageUrl) {
    MarkerImpl.setImageUrl(getJSObject(), imageUrl);
  }

  public void addBrowserEventListener(String browserEvent, final MarkerBrowserEventListener listener) {
    eventListeners.addListener(this, listener, browserEvent, new EventHandler() {
      public void onHandle(EventObject eventObject) {
        MarkerBrowserEvent e = new MarkerBrowserEvent(eventObject);
        listener.onBrowserEvent(e);
      }
    });
View Full Code Here

    public Layer clone() {
        return narrowToLayer(LayerImpl.clone(getJSObject()));
    }

    public void addLayerLoadStartListener(final LayerLoadStartListener listener) {
        eventListeners.addListener(this, listener, EventType.LAYER_LOADSTART, new EventHandler() {
            public void onHandle(EventObject eventObject) {
                LoadStartEvent e = new LoadStartEvent(eventObject);
                listener.onLoadStart(e);
            }
        });
View Full Code Here

            }
        });
    }

    public void addLayerLoadEndListener(final LayerLoadEndListener listener) {
        eventListeners.addListener(this, listener, EventType.LAYER_LOADEND, new EventHandler() {
            public void onHandle(EventObject eventObject) {
                LoadEndEvent e = new LoadEndEvent(eventObject);
                listener.onLoadEnd(e);
            }
        });
View Full Code Here

            }
        });
    }

    public void addLayerLoadCancelListener(final LayerLoadCancelListener listener) {
        eventListeners.addListener(this, listener, EventType.LAYER_LOADCANCEL, new EventHandler() {
            public void onHandle(EventObject eventObject) {
                LoadCancelEvent e = new LoadCancelEvent(eventObject);
                listener.onLoadCancel(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.