public class InfoTemplate
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static InfoTemplate |
create()
Creates a new empty InfoTemplate object.
|
static InfoTemplate |
create(com.google.gwt.core.client.JavaScriptObject json)
JSON object representing the InfoTemplate.
|
static InfoTemplate |
create(java.lang.String title,
java.lang.String content)
Creates a new InfoTemplate object.
|
java.lang.String |
getContent()
The template for defining how to format the content used in an InfoWindow.
|
com.google.gwt.core.client.JavaScriptObject |
getContentAsFunction()
The template for defining how to format the content used in an InfoWindow.
|
java.lang.String |
getTitle()
The template for defining how to format the title used in an InfoWindow.
|
com.google.gwt.core.client.JavaScriptObject |
getTitleAsFunction() |
void |
setContent(com.google.gwt.core.client.JavaScriptObject contentFunction)
Sets the content template.
|
void |
setContent(java.lang.String content)
Sets the content template.
|
void |
setTitle(com.google.gwt.core.client.JavaScriptObject titleFunction)
Sets the title template.
|
void |
setTitle(java.lang.String title)
Sets the title template.
|
com.google.gwt.core.client.JavaScriptObject |
toJson()
Converts object to its ArcGIS Server JSON representation.
|
public static InfoTemplate create()
public static InfoTemplate create(java.lang.String title, java.lang.String content)
title
- - The template for defining how to format the title used in an InfoWindow.content
- - The template for defining how to format the content used in an InfoWindow.public static InfoTemplate create(com.google.gwt.core.client.JavaScriptObject json)
json
- - Creates a new InfoTemplate object using a JSON object.public final java.lang.String getTitle()
public final com.google.gwt.core.client.JavaScriptObject getTitleAsFunction()
public final java.lang.String getContent()
public final com.google.gwt.core.client.JavaScriptObject getContentAsFunction()
public final void setContent(java.lang.String content)
content
- - The template for the content.public final void setContent(com.google.gwt.core.client.JavaScriptObject contentFunction)
content
- - The template for the content.public final void setTitle(java.lang.String title)
title
- - The template for the title.public final void setTitle(com.google.gwt.core.client.JavaScriptObject titleFunction)
title
- - The template for the title.public final com.google.gwt.core.client.JavaScriptObject toJson()