001 package com.google.gwt.maps.client.layers;
002
003 import com.google.gwt.core.client.JavaScriptObject;
004
005 /**
006 * Specifies the data to retrieve from a Fusion Tables.
007 * <br><br>
008 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#FusionTablesQuery">FusionTablesQuery API Doc</a>
009 */
010 public class FusionTablesQuery extends JavaScriptObject {
011
012 /**
013 * use newInstance();
014 */
015 protected FusionTablesQuery() {}
016
017 /**
018 * Specifies the data to retrieve from a Fusion Tables.
019 * @return {@link FusionTablesQuery}
020 */
021 public static final FusionTablesQuery newInstance() {
022 return JavaScriptObject.createObject().cast();
023 }
024
025 /**
026 * setsThe ID of the Fusion Tables table to display. This ID can be found in the tables URL, as the value of the dsrcid parameter.
027 * @param from
028 */
029 public final native void setFrom(String from) /*-{
030 this.from = from;
031 }-*/;
032
033 /**
034 * gets The ID of the Fusion Tables table to display. This ID can be found in the tables URL, as the value of the dsrcid parameter.
035 */
036 public final native String getFrom() /*-{
037 return this.from;
038 }-*/;
039
040 /**
041 * sets A column, containing geographic features to be displayed on the map. See Fusion Table Setup in the Maps API documentation for information about valid columns.
042 * @param select
043 */
044 public final native void setSelect(String select) /*-{
045 this.select = select;
046 }-*/;
047
048 /**
049 * gets A column, containing geographic features to be displayed on the map. See Fusion Table Setup in the Maps API documentation for information about valid columns.
050 */
051 public final native String getSelect() /*-{
052 return this.select;
053 }-*/;
054
055 /**
056 * sets The SQL predicate to be applied to the layer.
057 * @param where
058 */
059 public final native void setWhere(String where) /*-{
060 this.where = where;
061 }-*/;
062
063 /**
064 * gets The SQL predicate to be applied to the layer.
065 */
066 public final native String getWhere() /*-{
067 return this.where;
068 }-*/;
069
070 }