Class TextPopupElement

java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
com.esri.arcgisruntime.mapping.popup.TextPopupElement
All Implemented Interfaces:
JsonSerializable

public final class TextPopupElement extends PopupElement
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
  • Constructor Details

    • TextPopupElement

      public TextPopupElement(String text)
      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 the PopupDefinition.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 the PopupDefinition.getDescription().
      Throws:
      IllegalArgumentException - if text is null
      Since:
      100.14.0
  • Method Details

    • getText

      public String 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

      public void setText(String text)
      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: