All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.maps.client.weatherlib.WeatherForecast Maven / Gradle / Ivy

There is a newer version: 3.10.0-alpha-7
Show newest version
package com.google.gwt.maps.client.weatherlib;

/*
 * #%L
 * GWT Maps API V3 - Core API
 * %%
 * Copyright (C) 2011 - 2012 GWT Maps API V3
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Describes a single day's weather forecast. 
*
* See WeatherForecast * API Doc */ public class WeatherForecast extends JavaScriptObject { /** * use newInstance(); */ protected WeatherForecast() { } /** * creates - Describes a single day's weather forecast. */ public static final WeatherForecast newInstance() { return JavaScriptObject.createObject().cast(); } /** * Set the day of the week in long form, e.g. "Monday". * * @param day */ public final native void setDay(String day) /*-{ this.day = day; }-*/; /** * Gets the day of the week in long form, e.g. "Monday". */ public final native String getDay() /*-{ return this.day; }-*/; /** * Set a description of the conditions, e.g. "Partly Cloudy". * * @param description */ public final native void setDescription(String description) /*-{ this.description = description; }-*/; /** * Gets the description of the conditions, e.g. "Partly Cloudy". */ public final native String getDescription() /*-{ return this.description; }-*/; /** * Set the highest temperature reached during the day. * * @param high */ public final native void setHigh(double high) /*-{ this.high = high; }-*/; /** * Gets the highest temperature reached during the day. */ public final native double getHigh() /*-{ return this.high; }-*/; /** * Set the lowest temperature reached during the day. * * @param low */ public final native void setLow(double low) /*-{ this.low = low; }-*/; /** * Gets the lowest temperature reached during the day. */ public final native double getLow() /*-{ return this.low; }-*/; /** * Set the day of the week in short form, e.g. "M". * * @param shortDay */ public final native void setShortDay(String shortDay) /*-{ this.shortDay = shortDay; }-*/; /** * Gets the day of the week in short form, e.g. "M". */ public final native String getShortDay() /*-{ return this.shortDay; }-*/; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy