java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
com.esri.arcgisruntime.mapping.popup.MediaPopupElement
- All Implemented Interfaces:
JsonSerializable
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
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.mapping.popup.PopupElement
evaluated -
Constructor Summary
ConstructorsConstructorDescriptionMediaPopupElement(Iterable<PopupMedia> media) Creates a new media pop-up element with the given collection ofPopupMedia. -
Method Summary
Modifier and TypeMethodDescriptionGets a string value describing the element in detail.getMedia()Gets a mutable list ofPopupMediathat define images and charts displayed in the pop-up window.getTitle()Gets a string value indicating what the element represents.voidsetDescription(String description) Sets a string value describing the element in detail.voidSets a string value indicating what the element represents.Methods inherited from class com.esri.arcgisruntime.mapping.popup.PopupElement
evaluatedProperty, fromJson, getUnknownJson, getUnsupportedJson, isEvaluated, toJson
-
Constructor Details
-
MediaPopupElement
Creates a new media pop-up element with the given collection ofPopupMedia.- Parameters:
media- a collection ofPopupMediathat 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 Details
-
getDescription
Gets a string value describing the element in detail. Can be an empty string.- Returns:
- a string value describing the element in detail. Can be an empty string.
- Since:
- 100.14.0
- See Also:
-
setDescription
Sets a string value describing the element in detail. Can be an empty string.- Parameters:
description- a string value describing the element in detail. Can be an empty string.- Throws:
IllegalArgumentException- if description is null- Since:
- 100.14.0
- See Also:
-
getMedia
Gets a mutable list ofPopupMediathat define images and charts displayed in the pop-up window.- Returns:
- a mutable list of
PopupMediathat define images and charts displayed in the pop-up window - Since:
- 100.14.0
-
getTitle
Gets a string value indicating what the element represents. Can be an empty string.- Returns:
- a string value indicating what the element represents. Can be an empty string.
- Since:
- 100.14.0
- See Also:
-
setTitle
Sets a string value indicating what the element represents. Can be an empty string.- Parameters:
title- a string value indicating what the element represents. Can be an empty string.- Throws:
IllegalArgumentException- if title is null- Since:
- 100.14.0
- See Also:
-