Example usage for com.google.gwt.maps.client.overlays Polyline addClickHandler

List of usage examples for com.google.gwt.maps.client.overlays Polyline addClickHandler

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlays Polyline addClickHandler.

Prototype

public final HandlerRegistration addClickHandler(ClickMapHandler handler) 

Source Link

Document

This event is fired when the DOM click event is fired on the Polyline.

Usage

From source file:com.jettmarks.routes.client.bean.DisplayOnlyRoute.java

License:Apache License

/**
 * @see com.jettmarks.routes.client.bean.Route#addMouseHandlers(com.google.gwt.maps.client.overlay.Polyline)
 * @deprecated - No longer having the Route handle it's own event.
 *///from ww w . j  av a2  s. c  o m
@Override
protected void addMouseHandlers(Polyline p) {
    namePerPolyline.put(p, name);
    p.addClickHandler(new ClickMapHandler() {

        @Override
        public void onEvent(ClickMapEvent event) {
            toggleHighlight();
        }
    });
}