com.esri.android.map
Class InfoTemplate

java.lang.Object
  extended by com.esri.android.map.InfoTemplate
All Implemented Interfaces:
Serializable

public class InfoTemplate
extends Object
implements Serializable

An InfoTemplate contains a title and content view.

See Also:
Serialized Form

Constructor Summary
InfoTemplate()
          Instantiates an InfoTemplate.
InfoTemplate(String title, String content)
          Instantiates an InfoTemplate with the given content view and title.
 
Method Summary
 String getContent(Graphic graphic)
          Gets the content populated with the attribute values of the provided graphic.
 String getContentTemplate()
          Gets the view of the content.
 String getTitle(Graphic graphic)
          Gets the title populated with the attribute values of the provided graphic.
 String getTitleTemplate()
          Gets the title of the view without replacing the tokens.
 void setContentTemplate(String content)
          Sets the view of the content.
 void setTitleTemplate(String title)
          Sets the title of the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoTemplate

public InfoTemplate()
Instantiates an InfoTemplate.


InfoTemplate

public InfoTemplate(String title,
                    String content)
Instantiates an InfoTemplate with the given content view and title.

Parameters:
title - the view title.
content - the content view.
Method Detail

getTitleTemplate

public String getTitleTemplate()
Gets the title of the view without replacing the tokens.

Returns:
the title template containing the tokens

setTitleTemplate

public void setTitleTemplate(String title)
Sets the title of the view.

Parameters:
title - the title name.

getContentTemplate

public String getContentTemplate()
Gets the view of the content.


getContent

public String getContent(Graphic graphic)
Gets the content populated with the attribute values of the provided graphic.


getTitle

public String getTitle(Graphic graphic)
Gets the title populated with the attribute values of the provided graphic.


setContentTemplate

public void setContentTemplate(String content)
Sets the view of the content.



Copyright © 2010. All Rights Reserved.