Class RelationshipPopupElement

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

public final class RelationshipPopupElement extends PopupElement
Represents a pop-up element of type relationship that is displayed in a pop-up for a geoelement.

A typical UI implementation displays a preview of a maximum of display count related records with a possibility to show more records and more detailed info by record.

Since:
200.1.0
  • Property Details

  • Constructor Details

    • RelationshipPopupElement

      public RelationshipPopupElement(long relationshipId)
      Creates a new relationship pop-up element with the given relationship ID.
      Parameters:
      relationshipId - the id of the relationship as defined in the feature layer definition
      Since:
      200.1.0
  • Method Details

    • descriptionProperty

      public StringProperty descriptionProperty()
      A string value describing the element in detail. Can be an empty string.

      Will throw NullPointerException if the description is set to null.

      Returns:
      the description property
      Since:
      200.1.0
      See Also:
    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Property description:
      A string value describing the element in detail. Can be an empty string.

      Will throw NullPointerException if the description is set to null.

      Returns:
      the value of the description property
      Since:
      200.1.0
      See Also:
    • setDescription

      public void setDescription(String description)
      Sets the value of the description property.
      Property description:
      A string value describing the element in detail. Can be an empty string.

      Will throw NullPointerException if the description is set to null.

      Parameters:
      description - the value for the description property
      Since:
      200.1.0
      See Also:
    • displayCountProperty

      public IntegerProperty displayCountProperty()
      The maximum number of records to display.

      The default value is 3.

      If this maximum number is 0, no records will be displayed in the preview.

      Returns:
      the displayCount property
      Since:
      200.1.0
      See Also:
    • getDisplayCount

      public int getDisplayCount()
      Gets the value of the displayCount property.
      Property description:
      The maximum number of records to display.

      The default value is 3.

      If this maximum number is 0, no records will be displayed in the preview.

      Returns:
      the value of the displayCount property
      Since:
      200.1.0
      See Also:
    • setDisplayCount

      public void setDisplayCount(int displayCount)
      Sets the value of the displayCount property.
      Property description:
      The maximum number of records to display.

      The default value is 3.

      If this maximum number is 0, no records will be displayed in the preview.

      Parameters:
      displayCount - the value for the displayCount property
      Since:
      200.1.0
      See Also:
    • getOrderByFields

      public List<QueryParameters.OrderBy> getOrderByFields()
      Gets a List of QueryParameters.OrderBy objects indicating the display order for the related records and whether they should be sorted in ascending or descending order.

      If this collection is empty, the related records are displayed in whatever order the server decides.

      Returns:
      a List of QueryParameters.OrderBy objects indicating the display order for the related records and whether they should be sorted in ascending or descending order
      Since:
      200.1.0
      See Also:
    • relationshipIdProperty

      public ReadOnlyLongProperty relationshipIdProperty()
      The id of the relationship as defined in the feature layer definition.
      Returns:
      the relationshipId property
      Since:
      200.1.0
      See Also:
    • getRelationshipId

      public long getRelationshipId()
      Gets the value of the relationshipId property.
      Property description:
      The id of the relationship as defined in the feature layer definition.
      Returns:
      the value of the relationshipId property
      Since:
      200.1.0
      See Also:
    • titleProperty

      public StringProperty titleProperty()
      A string value indicating what the element represents. Can be an empty string.

      Will throw NullPointerException if the title is set to null.

      Returns:
      the title property
      Since:
      200.1.0
      See Also:
    • getTitle

      public String getTitle()
      Gets the value of the title property.
      Property description:
      A string value indicating what the element represents. Can be an empty string.

      Will throw NullPointerException if the title is set to null.

      Returns:
      the value of the title property
      Since:
      200.1.0
      See Also:
    • setTitle

      public void setTitle(String title)
      Sets the value of the title property.
      Property description:
      A string value indicating what the element represents. Can be an empty string.

      Will throw NullPointerException if the title is set to null.

      Parameters:
      title - the value for the title property
      Since:
      200.1.0
      See Also: