com.google.gwt.maps.client.streetview
Enum StreetviewPanoramaWidget.ErrorValue

java.lang.Object
  extended by java.lang.Enum<StreetviewPanoramaWidget.ErrorValue>
      extended by com.google.gwt.maps.client.streetview.StreetviewPanoramaWidget.ErrorValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StreetviewPanoramaWidget.ErrorValue>
Enclosing class:
StreetviewPanoramaWidget

public static enum StreetviewPanoramaWidget.ErrorValue
extends java.lang.Enum<StreetviewPanoramaWidget.ErrorValue>

An enum equivalents for error codes passed to StreetviewErrorHandler.

See Also:
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama.ErrorValues"

Enum Constant Summary
FLASH_UNAVAILABLE
           
NO_NEARBY_PANO
           
NO_PHOTO
           
 
Method Summary
static StreetviewPanoramaWidget.ErrorValue getByErrorCode(int errorCode)
          Returns enum value for the passed error code or null if error code is unknown.
 int getErrorCode()
          Returns error code.
static StreetviewPanoramaWidget.ErrorValue valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StreetviewPanoramaWidget.ErrorValue[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_NEARBY_PANO

public static final StreetviewPanoramaWidget.ErrorValue NO_NEARBY_PANO

NO_PHOTO

public static final StreetviewPanoramaWidget.ErrorValue NO_PHOTO

FLASH_UNAVAILABLE

public static final StreetviewPanoramaWidget.ErrorValue FLASH_UNAVAILABLE
Method Detail

values

public static StreetviewPanoramaWidget.ErrorValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StreetviewPanoramaWidget.ErrorValue c : StreetviewPanoramaWidget.ErrorValue.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StreetviewPanoramaWidget.ErrorValue valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getByErrorCode

public static StreetviewPanoramaWidget.ErrorValue getByErrorCode(int errorCode)
Returns enum value for the passed error code or null if error code is unknown.

Parameters:
errorCode - error code.
Returns:
enum value for the passed error code or null if error code is unknown.

getErrorCode

public int getErrorCode()
Returns error code.

Returns:
error code.