java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
com.esri.arcgisruntime.mapping.popup.TextPopupElement
- All Implemented Interfaces:
JsonSerializable
Represents a pop-up element of type text that defines descriptive text as an element to display in
a pop-up for a geoelement. The text may reference values returned from a field attribute or an
Arcade expression defined in the
PopupDefinition.getExpressions()
. The text may also leverage
a basic subset of HTML tags for formatting the look and feel of the text.- Since:
- 100.14.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.mapping.popup.PopupElement
evaluated
-
Constructor Summary
ConstructorDescriptionTextPopupElement
(String text) Creates a new text pop-up element with the given text. -
Method Summary
Methods inherited from class com.esri.arcgisruntime.mapping.popup.PopupElement
evaluatedProperty, fromJson, getUnknownJson, getUnsupportedJson, isEvaluated, toJson
-
Constructor Details
-
TextPopupElement
Creates a new text pop-up element with the given text. The text may reference values returned from a field attribute or an Arcade expression defined in thePopupDefinition.getExpressions()
. The text may also leverage a basic subset of HTML tags for formatting the look and feel of the text.- Parameters:
text
- a string indicating the text to be displayed within the pop-up element. If an empty string is provided, the pop-up element will display whatever is specified in thePopupDefinition.getDescription()
.- Throws:
IllegalArgumentException
- if text is null- Since:
- 100.14.0
-
-
Method Details
-
getText
Gets the text to display in the pop-up.- Returns:
- the text to display in the pop-up
- Since:
- 100.14.0
- See Also:
-
setText
Sets the text to display in the pop-up.- Parameters:
text
- the text to display in the pop-up- Throws:
IllegalArgumentException
- if text is null- Since:
- 100.14.0
- See Also:
-