public class WeatherFeature extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
WeatherFeature()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
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.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final WeatherFeature newInstance()
public final void setLocation(String location)
location
- public final String getLocation()
public final void setForecast(JsArray<WeatherForecast> forecast)
forecast
- public final JsArray<WeatherForecast> getForecast()
public final void setCurrent(WeatherConditions current)
current
- public final WeatherConditions getCurrent()
public final void setTemperatureUnits(TemperatureUnit temperatureUnit)
temperatureUnit
- public final TemperatureUnit getTemperatureUnits()
public final void setWindSpeedUnits(WindSpeedUnit windSpeedUnit)
windSpeedUnit
- public final WindSpeedUnit getWindSpeedUnits()
Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.