com.google.gwt.maps.client.weatherlib
Class WeatherFeature

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.weatherlib.WeatherFeature

public class WeatherFeature
extends JavaScriptObject

This object describes a single Weather feature..

See WeatherFeature API Doc


Constructor Summary
protected WeatherFeature()
          use newInstance();
 
Method Summary
 WeatherConditions getCurrent()
          Gets the current weather conditions at this location.
 JsArray<WeatherForecast> getForecast()
          Gets the forecast of weather conditions over the next four days.
 String getLocation()
          Gets the location name of this feature, e.g.
 TemperatureUnit getTemperatureUnits()
          Gets the units to use for temperature.
 WindSpeedUnit getWindSpeedUnits()
          Gets the units to use for wind speed.
static WeatherFeature newInstance()
          creates - This object describes a single Weather feature.
 void setCurrent(WeatherConditions current)
          The current weather conditions at this location.
 void setForecast(JsArray<WeatherForecast> forecast)
          Sets the forecast of weather conditions over the next four days.
 void setLocation(String location)
          The location name of this feature, e.g.
 void setTemperatureUnits(TemperatureUnit temperatureUnit)
          Sets the units to use for temperature.
 void setWindSpeedUnits(WindSpeedUnit windSpeedUnit)
          Sets the units to use for wind speed.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeatherFeature

protected WeatherFeature()
use newInstance();

Method Detail

newInstance

public static final WeatherFeature newInstance()
creates - This object describes a single Weather feature.


setLocation

public final void setLocation(String location)
The location name of this feature, e.g. "San Francisco, California".

Parameters:
location -

getLocation

public final String getLocation()
Gets the location name of this feature, e.g. "San Francisco, California".


setForecast

public final void setForecast(JsArray<WeatherForecast> forecast)
Sets the forecast of weather conditions over the next four days. The forecast array is always in chronological order.

Parameters:
forecast -

getForecast

public final JsArray<WeatherForecast> getForecast()
Gets the forecast of weather conditions over the next four days. The forecast array is always in chronological order.


setCurrent

public final void setCurrent(WeatherConditions current)
The current weather conditions at this location.

Parameters:
current -

getCurrent

public final WeatherConditions getCurrent()
Gets the current weather conditions at this location.


setTemperatureUnits

public final void setTemperatureUnits(TemperatureUnit temperatureUnit)
Sets the units to use for temperature.

Parameters:
temperatureUnit -

getTemperatureUnits

public final TemperatureUnit getTemperatureUnits()
Gets the units to use for temperature.


setWindSpeedUnits

public final void setWindSpeedUnits(WindSpeedUnit windSpeedUnit)
Sets the units to use for wind speed.

Parameters:
windSpeedUnit -

getWindSpeedUnits

public final WindSpeedUnit getWindSpeedUnits()
Gets the units to use for wind speed.



Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.