Class GLSearchDisplayInfo

java.lang.Object
globus.glsearch.GLSearchDisplayInfo
All Implemented Interfaces:
AutoCloseable

public final class GLSearchDisplayInfo extends Object implements AutoCloseable
Display data for a search result row.

Returned by GLSearch.GetDisplayInfo(globus.glmap.GLMapVectorObject, globus.glmap.GLMapLocaleSettings). Online and offline search results are normalized to the same fields: online results expose the data prepared by the search server, offline results are built locally with the same rules. Close this object after copying the values needed by the UI.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Category of the object.
    final globus.glmap.GLMapValue
    Short address context displayed below the title.
    final globus.glmap.GLMapValue
    Primary row text.
    final String[]
    Result types, for example ["poi", "cafe"].
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the native title, secondary text, and category values owned by this display info.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • title

      @Nullable public final globus.glmap.GLMapValue title
      Primary row text.
    • secondaryText

      @Nullable public final globus.glmap.GLMapValue secondaryText
      Short address context displayed below the title.
    • types

      @NonNull public final String[] types
      Result types, for example ["poi", "cafe"].
    • category

      @Nullable public final GLSearchCategory category
      Category of the object. Provides the icon name via GLSearchCategory.getIconName().
  • Method Details

    • close

      public void close()
      Closes the native title, secondary text, and category values owned by this display info.
      Specified by:
      close in interface AutoCloseable