com.esri.core.map.popup
Class PopupMediaInfo

java.lang.Object
  extended by com.esri.core.map.popup.PopupMediaInfo

public class PopupMediaInfo
extends Object

The PopupMediaInfo class represents information about a media in the popup.


Nested Class Summary
static class PopupMediaInfo.MEDIA_TYPE
          Enumeration for popup media types.
 
Constructor Summary
PopupMediaInfo()
           
 
Method Summary
static PopupMediaInfo fromJson(org.codehaus.jackson.JsonParser parser)
          Constructs a PopupMediaInfo object from its JSON representation.
 String getCaption()
          Returns the popup media's caption.
 String getTitle()
          Returns the popup media's title.
 PopupMediaInfo.MEDIA_TYPE getType()
          Returns the popup media's type.
 PopupMediaValue getValue()
          Returns the popup media's value.
 void setCaption(String caption)
          Sets the popup media's caption.
 void setTitle(String title)
          Sets the popup media's title.
 void setType(PopupMediaInfo.MEDIA_TYPE type)
          Sets the popup media's type.
 void setValue(PopupMediaValue value)
          Sets the popup media's value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMediaInfo

public PopupMediaInfo()
Method Detail

getTitle

public String getTitle()
Returns the popup media's title.

Returns:
title

setTitle

public void setTitle(String title)
Sets the popup media's title.

Parameters:
title - The media's title

getCaption

public String getCaption()
Returns the popup media's caption.

Returns:
caption

setCaption

public void setCaption(String caption)
Sets the popup media's caption.

Parameters:
caption - The media's caption

getType

public PopupMediaInfo.MEDIA_TYPE getType()
Returns the popup media's type.

Returns:
type

setType

public void setType(PopupMediaInfo.MEDIA_TYPE type)
Sets the popup media's type.

Parameters:
type - The media's type

getValue

public PopupMediaValue getValue()
Returns the popup media's value.

Returns:
value

setValue

public void setValue(PopupMediaValue value)
Sets the popup media's value.

Parameters:
value - The media's value

fromJson

public static PopupMediaInfo fromJson(org.codehaus.jackson.JsonParser parser)
                               throws Exception
Constructs a PopupMediaInfo object from its JSON representation.

Parameters:
parser - A JSON parser object whose position is set at the "mediaInfos" node.
Returns:
A PopupMediaInfo object.
Throws:
Exception - An exception that occurred during parsing.


Copyright © 2012. All Rights Reserved.