| java.lang.Object | |
| ↳ | com.esri.core.map.InfoTemplate |
An InfoTemplate is an object containing a title template and a content template.
These title and content templates can contain references to values by using the token prototype ${[key]}.
These tokens are replaced with the appropriate values when content and title are requested through the methods
getContent(Graphic) and getTitle(Graphic) respectively, using the attributes contained in the
Graphic provided.
@deprecated
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
InfoTemplate()
Default empty constructor.
| |||||||||||
|
InfoTemplate(String title, String content)
Instantiates an InfoTemplate with the given content and title.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
getContent(Graphic graphic)
Gets the content populated with the attribute values of the provided graphic.
| ||||||||||
| String |
getContentTemplate()
Gets the content without replacing the tokens.
| ||||||||||
| String |
getTitle(Graphic graphic)
Gets the title populated with the attribute values of the provided graphic.
| ||||||||||
| String |
getTitleTemplate()
Gets the title without replacing the tokens.
| ||||||||||
| void |
setContentTemplate(String contentTemplate)
Sets the content template.
| ||||||||||
| void | setFields(Field[] fields) | ||||||||||
| void |
setTitleTemplate(String title)
Sets the title template.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | formatValueNoFields(Object obj) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Default empty constructor.
Instantiates an InfoTemplate with the given content and title.
| title | the title of the InfoTemplate. |
|---|---|
| content | the content of the InfoTemplate. |
Gets the content populated with the attribute values of the provided graphic.
| graphic | the graphic containing the attributes to be used to populate the content. |
|---|
Gets the content without replacing the tokens.
Gets the title populated with the attribute values of the provided graphic.
| graphic | the graphic containing the attributes to be used to populate the title. |
|---|
Gets the title without replacing the tokens.
Sets the content template.
| contentTemplate | the content template. |
|---|
Sets the title template.
| title | the title template. |
|---|