com.esri.core.map
Class InfoTemplate

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

Deprecated.

@Deprecated
public class InfoTemplate
extends Object
implements Serializable

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.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
InfoTemplate()
          Deprecated. Default empty constructor.
InfoTemplate(String title, String content)
          Deprecated. Instantiates an InfoTemplate with the given content and title.
 
Method Summary
protected  String formatValueNoFields(Object obj)
          Deprecated.  
 String getContent(Graphic graphic)
          Deprecated. Gets the content populated with the attribute values of the provided graphic.
 String getContentTemplate()
          Deprecated. Gets the content without replacing the tokens.
 String getTitle(Graphic graphic)
          Deprecated. Gets the title populated with the attribute values of the provided graphic.
 String getTitleTemplate()
          Deprecated. Gets the title without replacing the tokens.
 void setContentTemplate(String contentTemplate)
          Deprecated. Sets the content template.
 void setFields(Field[] fields)
          Deprecated.  
 void setTitleTemplate(String title)
          Deprecated. Sets the title template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoTemplate

public InfoTemplate()
Deprecated. 
Default empty constructor.


InfoTemplate

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

Parameters:
title - the title of the InfoTemplate.
content - the content of the InfoTemplate.
Method Detail

getTitleTemplate

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

Returns:
the title template

setTitleTemplate

public void setTitleTemplate(String title)
Deprecated. 
Sets the title template.

Parameters:
title - the title template.

getContentTemplate

public String getContentTemplate()
Deprecated. 
Gets the content without replacing the tokens.

Returns:
the content template

setContentTemplate

public void setContentTemplate(String contentTemplate)
Deprecated. 
Sets the content template.

Parameters:
contentTemplate - the content template.

setFields

public void setFields(Field[] fields)
Deprecated. 

getContent

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

Parameters:
graphic - the graphic containing the attributes to be used to populate the content.
Returns:
the content populated with the graphic's attributes values

getTitle

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

Parameters:
graphic - the graphic containing the attributes to be used to populate the title.
Returns:
the title populated with the graphic's attributes values

formatValueNoFields

protected String formatValueNoFields(Object obj)
Deprecated. 
Parameters:
obj -
Returns:


Copyright © 2012. All Rights Reserved.