Class MediaPopupElement
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.popup.PopupElement
-
- com.esri.arcgisruntime.mapping.popup.MediaPopupElement
-
public final class MediaPopupElement extends PopupElement
Represents a pop-up element of type media that defines an individual or array of chart and/or image to display in a pop-up for a geoelement.- Since:
- 100.14.0
- See Also:
PopupElement
-
-
Constructor Summary
Constructors Constructor Description MediaPopupElement(Iterable<PopupMedia> media)
Creates a new media pop-up element with the given collection ofPopupMedia
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Gets an optional string describing the element in detail.List<PopupMedia>
getMedia()
Gets a mutable list ofPopupMedia
that define images and charts displayed in the pop-up window.String
getTitle()
Gets an optional string indicating what the element represents.void
setDescription(String description)
Sets a string describing the element in detail.void
setTitle(String title)
Sets a string indicating what the element represents.
-
-
-
Constructor Detail
-
MediaPopupElement
public MediaPopupElement(Iterable<PopupMedia> media)
Creates a new media pop-up element with the given collection ofPopupMedia
.- Parameters:
media
- a collection ofPopupMedia
that define images and charts displayed in the pop-up window. When an empty collection is passed, this element will display whatever is specified in thePopupDefinition.getMedia()
.- Throws:
IllegalArgumentException
- if media is null- Since:
- 100.14.0
-
-
Method Detail
-
getDescription
public String getDescription()
Gets an optional string describing the element in detail.- Returns:
- an optional string describing the element in detail
- Since:
- 100.14.0
- See Also:
setDescription(String)
-
setDescription
public void setDescription(String description)
Sets a string describing the element in detail.- Parameters:
description
- a string describing the element in detail- Throws:
IllegalArgumentException
- if description is null- Since:
- 100.14.0
- See Also:
getDescription()
-
getMedia
public List<PopupMedia> getMedia()
Gets a mutable list ofPopupMedia
that define images and charts displayed in the pop-up window.- Returns:
- a mutable list of
PopupMedia
that define images and charts displayed in the pop-up window - Since:
- 100.14.0
-
getTitle
public String getTitle()
Gets an optional string indicating what the element represents.- Returns:
- an optional string indicating what the element represents
- Since:
- 100.14.0
- See Also:
setTitle(String)
-
setTitle
public void setTitle(String title)
Sets a string indicating what the element represents.- Parameters:
title
- a string indicating what the element represents- Throws:
IllegalArgumentException
- if title is null- Since:
- 100.14.0
- See Also:
getTitle()
-
-