001 package com.google.gwt.maps.client.streetview; 002 003 import com.google.gwt.core.client.JavaScriptObject; 004 005 /** 006 * A collection of references to adjacent Street View panos. 007 * <br><br> 008 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewLink">StreetViewLink API Doc</a> 009 */ 010 public class StreetViewLink extends JavaScriptObject { 011 012 /** 013 * A collection of references to adjacent Street View panos. 014 * use newInstance(); 015 */ 016 protected StreetViewLink() {} 017 018 /** 019 * A collection of references to adjacent Street View panos. 020 */ 021 public static final StreetViewLink newInstance() { 022 return JavaScriptObject.createObject().cast(); 023 } 024 025 /** 026 * sets A localized string describing the link. 027 * @param description 028 */ 029 public final native void setDescription(String description) /*-{ 030 this.description = description; 031 }-*/; 032 033 /** 034 * gets A localized string describing the link. 035 */ 036 public final native String getDescription() /*-{ 037 return this.description; 038 }-*/; 039 040 /** 041 * sets The heading of the link. 042 * @param heading 043 */ 044 public final native void setHeading(int heading) /*-{ 045 this.heading = heading; 046 }-*/; 047 048 /** 049 * gets The heading of the link. 050 */ 051 public final native int getHeading() /*-{ 052 return this.heading; 053 }-*/; 054 055 /** 056 * sets A unique identifier for the panorama. This id is stable within a session but unstable across sessions. 057 * @param pano 058 */ 059 public final native void setPano(String pano) /*-{ 060 this.pano = pano; 061 }-*/; 062 063 /** 064 * gets A unique identifier for the panorama. This id is stable within a session but unstable across sessions. 065 */ 066 public final native String getPano() /*-{ 067 return this.pano; 068 }-*/; 069 070 }