Class PopupElement

java.lang.Object
com.esri.arcgisruntime.mapping.popup.PopupElement
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
AttachmentsPopupElement, ExpressionPopupElement, FieldsPopupElement, MediaPopupElement, RelationshipPopupElement, TextPopupElement, UnsupportedPopupElement

public abstract class PopupElement extends Object implements JsonSerializable
Represents an element that is displayed in a pop-up for a geoelement.
Since:
100.14.0
See Also:
  • Property Details

  • Method Details

    • evaluatedProperty

      public ReadOnlyBooleanProperty evaluatedProperty()
      A value indicating whether the popup element is contained in the Popup.getEvaluatedElements().
      Returns:
      the evaluated property
      Since:
      200.1.0
      See Also:
    • isEvaluated

      public boolean isEvaluated()
      Gets the value of the evaluated property.
      Property description:
      A value indicating whether the popup element is contained in the Popup.getEvaluatedElements().
      Returns:
      the value of the evaluated property
      Since:
      200.1.0
      See Also:
    • getUnknownJson

      public Map<String,Object> getUnknownJson()
      Description copied from interface: JsonSerializable
      Gets unknown data from the source JSON.

      Unknown JSON is a Map of values not defined in the ArcGIS specification used to create this object but found in the source JSON. If the object is written back to JSON, any unknown JSON data is not persisted. The ArcGIS specification may be for a web map, web scene, REST API, and so on.

      Specified by:
      getUnknownJson in interface JsonSerializable
      Returns:
      an unmodifiable Map containing unknown data from the source JSON
    • getUnsupportedJson

      public Map<String,Object> getUnsupportedJson()
      Description copied from interface: JsonSerializable
      Gets unsupported data from the source JSON.

      Unsupported JSON is a Map of values defined in the ArcGIS specification used to create this object but not currently used in this API. If the object is written back to JSON, any unsupported JSON data is persisted. The ArcGIS specification may be from a web map, web scene, REST API, and so on.

      Specified by:
      getUnsupportedJson in interface JsonSerializable
      Returns:
      an unmodifiable Map containing unsupported data from the source JSON
    • fromJson

      public static PopupElement fromJson(String json)
      Creates a PopupElement instance from a JSON string.
      Parameters:
      json - a JSON string that represents a PopupElement
      Returns:
      a PopupElement instance
      Throws:
      IllegalArgumentException - if json is null or empty
      Since:
      200.0.0
    • toJson

      public String toJson()
      Description copied from interface: JsonSerializable
      Serializes this object to a JSON string. Note that unknown JSON is omitted from the serialized string.
      Specified by:
      toJson in interface JsonSerializable
      Returns:
      a JSON string