com.google.gwt.maps.client.layers.KmlFeatureData Maven / Gradle / Ivy
package com.google.gwt.maps.client.layers;
/*
* #%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;
/**
* Data for a single KML feature in JSON format, returned when a KML feature is clicked. The data contained in this
* object mirrors that associated with the feature in the KML or GeoRSS markup in which it is declared.
*/
public class KmlFeatureData extends JavaScriptObject {
/**
* This is created from an event. use newInstance();
*/
protected KmlFeatureData() {
}
/**
* this is created from an event
*/
public static final KmlFeatureData newInstance() {
return JavaScriptObject.createObject().cast();
}
/**
* The feature's , extracted from the layer markup (if specified).
*
* @param author
*/
public final native void setAuthor(KmlAuthor author) /*-{
this.author = author;
}-*/;
/**
* The feature's , extracted from the layer markup (if specified).
*/
public final native KmlAuthor getAuthor() /*-{
return this.author;
}-*/;
/**
* The feature's , extracted from the layer markup.
*
* @param description
*/
public final native void setDescription(String description) /*-{
this.description = description;
}-*/;
/**
* The feature's , extracted from the layer markup.
*/
public final native String getDescription() /*-{
return this.description;
}-*/;
/**
* The feature's , extracted from the layer markup. If no has been specified, a unique ID will be generated
* for this feature.
*
* @param id
*/
public final native void setId(String id) /*-{
this.id = id;
}-*/;
/**
* The feature's , extracted from the layer markup. If no has been specified, a unique ID will be generated
* for this feature.
*/
public final native String getId() /*-{
return this.id;
}-*/;
/**
* The feature's balloon styled text, if set.
*
* @param infoWindowHtml
*/
public final native void setInfoWindowHtml(String infoWindowHtml) /*-{
this.infoWindowHtml = infoWindowHtml;
}-*/;
/**
* The feature's balloon styled text, if set.
*/
public final native String getInfoWindowHtml() /*-{
return this.infoWindowHtml;
}-*/;
/**
* The feature's , extracted from the layer markup.
*
* @param name
*/
public final native void setName(String name) /*-{
this.name = name;
}-*/;
/**
* The feature's , extracted from the layer markup.
*/
public final native String getName() /*-{
return this.name;
}-*/;
/**
* The feature's , extracted from the layer markup.
*
* @param snippet
*/
public final native void setSnippet(String snippet) /*-{
this.snippet = snippet;
}-*/;
/**
* The feature's , extracted from the layer markup.
*/
public final native String getSnippet() /*-{
return this.snippet;
}-*/;
/**
* get to this object json string
*/
public final native String getToString() /*-{
return this.toSource ? this.toSource() : "NO SOURCE";
}-*/;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy