001    package com.google.gwt.maps.client.streetview;
002    
003    import com.google.gwt.core.client.JavaScriptObject;
004    import com.google.gwt.core.client.JsArray;
005    
006    /** 
007     * The representation of a panorama returned from the provider defined using registerPanoProvider.
008     * <br><br>
009     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewPanoramaOptions">StreetViewPanoramaOptions API Doc</a>
010     */
011    public class StreetViewPanoramaData extends JavaScriptObject {
012      
013      /**
014       * The representation of a panorama returned from the provider defined using registerPanoProvider.
015       * use newInstance();
016       */
017      protected StreetViewPanoramaData() {}
018      
019      /**
020       * The representation of a panorama returned from the provider defined using registerPanoProvider.
021       * @return {@link StreetViewPanoramaData}
022       */
023      public final static StreetViewPanoramaData newInstance() {
024        return JavaScriptObject.createObject().cast();
025      }
026      
027      /**
028       * sets Specifies the copyright text for this panorama.
029       * @param copyright
030       */
031      public final native void setCopyright(String copyright) /*-{
032        this.copyright = copyright;
033      }-*/;
034      
035      /**
036       * gets Specifies the copyright text for this panorama.
037       */
038      public final native String getCopyright() /*-{
039        return this.copyright;
040      }-*/;
041      
042      /**
043       * sets Specifies the navigational links to adjacent panoramas.
044       * @param links {@link StreetViewLink}
045       */
046      public final native void setLinks(JsArray<StreetViewLink> links) /*-{
047        this.links = links;
048      }-*/;
049      
050      /**
051       * gets Specifies the navigational links to adjacent panoramas.
052       * @return {@link StreetViewLink}
053       */
054      public final native JsArray<StreetViewLink> getLinks() /*-{
055        return this.links;
056      }-*/;
057      
058      /**
059       * sets Specifies the location meta-data for this panorama.
060       * @param location {@link StreetViewLocation}
061       */
062      public final native void setLocation(StreetViewLocation location) /*-{
063        this.location = location;
064      }-*/;
065      
066      /**
067       * gets Specifies the location meta-data for this panorama.
068       * @return {@link StreetViewLocation}
069       */
070      public final native StreetViewLocation getLocation() /*-{
071        return this.location;
072      }-*/;
073      
074      /**
075       * sets Specifies the custom tiles for this panorama.
076       * @param tiles {@link StreetViewTileData}
077       */
078      public final native void setTileData(StreetViewTileData tiles) /*-{
079        this.tiles = tiles;
080      }-*/;
081      
082      /**
083       * gets Specifies the custom tiles for this panorama.
084       * @return {@link StreetViewTileData}
085       */
086      public final native StreetViewTileData getTileData() /*-{
087        return this.tiles;
088      }-*/;
089      
090      
091    }
092