001    package com.google.gwt.maps.client.streetview;
002    
003    import com.google.gwt.core.client.JavaScriptObject;
004    import com.google.gwt.maps.client.controls.ControlPosition;
005    
006    /**
007     * Options for the rendering of the Street View address control.
008     * <br><br>
009     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewAddressControlOptions">StreetViewAddressControlOptions API Doc</a>
010     */
011    public class StreetViewAddressControlOptions extends JavaScriptObject {
012      
013      /**
014       * creates Options for the rendering of the Street View address control.
015       */
016      public final static StreetViewAddressControlOptions newInstance() {
017        return JavaScriptObject.createObject().cast();
018      }
019      
020      /**
021       * Options for the rendering of the Street View address control.
022       * use newInstance();
023       */
024      protected StreetViewAddressControlOptions() {}
025      
026      /**
027       * Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.
028       */
029      public final ControlPosition getPosition() {
030        return ControlPosition.fromValue(getPositionImpl());
031      }
032      
033      private final native int getPositionImpl() /*-{
034        return this.position;
035      }-*/;
036      
037      /**
038       * Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.
039       * @param position {@link ControlPosition}
040       */
041      public final void setPosition(ControlPosition position) {
042        setPositionImpl(position.value());
043      }
044    
045      private final native void setPositionImpl(int position) /*-{
046        this.position = position;
047      }-*/;
048    
049    }