001    package com.google.gwt.maps.client.overlays;
002    
003    import com.google.gwt.core.client.JavaScriptObject;
004    import com.google.gwt.maps.client.MapImpl;
005    import com.google.gwt.maps.client.MapWidget;
006    
007    /**
008     * {@link GroundOverlay} Options
009     * <br><br>
010     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#GroundOverlayOptions">GroundOverlayOptions API Doc</a> 
011     */
012    public class GroundOverlayOptions extends JavaScriptObject {
013    
014      /**
015       * use newInstance();
016       */
017      protected GroundOverlayOptions() {}
018      
019      /**
020       * creates GroundOverlay options
021       */
022      public final static GroundOverlayOptions newInstance() {
023        return JavaScriptObject.createObject().cast();
024      }
025      
026      /**
027       * sets Indicates whether this Polyline handles click events. Defaults to true.
028       * @param clickable
029       */
030      public final native void setClickable(boolean clickable) /*-{
031        this.clickable = clickable;
032      }-*/;
033      
034      /**
035       * gets Indicates whether this Polyline handles click events. Defaults to true.
036       */
037      public final native boolean getClickable() /*-{
038        return this.clickable;
039      }-*/;
040    
041      /**
042       * sets Map on which to display Polyline.
043       * @param mapWidget
044       */
045      public final void setMap(MapWidget mapWidget) {
046        setMapImpl(mapWidget.getJso());
047      }
048    
049      private final native void setMapImpl(MapImpl map) /*-{
050        this.map = map;
051      }-*/;
052      
053      /**
054       * gets Map on which to display Polyline.
055       */
056      public final MapWidget getMapWidget() {
057        return MapWidget.newInstance(getMapImpl());
058      }
059      
060      private final native MapImpl getMapImpl() /*-{
061        return this.map;
062      }-*/;
063      
064    }