List of usage examples for com.google.gwt.maps.client.overlays Polyline addClickHandler
public final HandlerRegistration addClickHandler(ClickMapHandler handler)
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(); } }); }