Class GLSearchCategory


  • public class GLSearchCategory
    extends globus.glmap.GLNativeObject
    GLSearchCategory holds information about category that can be displayed to user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      GLSearchCategory[] getChilds()  
      java.lang.String getIconName()  
      int hashCode()  
      java.lang.String localizedName​(globus.glmap.GLMapLocaleSettings localeSettings)
      Returns name of the category according language priority settings.
      boolean nativeEquals​(GLSearchCategory other)  
      android.text.SpannableString spannedName​(java.lang.Object normal, java.lang.Object highlighted, int flags, globus.glmap.GLMapLocaleSettings localeSettings)
      Returns spanned name where parts that matched search are highlighted.
      • Methods inherited from class globus.glmap.GLNativeObject

        dispose
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • localizedName

        public java.lang.String localizedName​(globus.glmap.GLMapLocaleSettings localeSettings)
        Returns name of the category according language priority settings. It checks for translated name from first language in priority list to the last one until first translated name is found.
        Parameters:
        localeSettings - language order settings
        Returns:
        localised name of the category.
      • spannedName

        public android.text.SpannableString spannedName​(java.lang.Object normal,
                                                        java.lang.Object highlighted,
                                                        int flags,
                                                        globus.glmap.GLMapLocaleSettings localeSettings)
        Returns spanned name where parts that matched search are highlighted.
        Parameters:
        normal - normal span (must support clone method)
        highlighted - highlighted span (must support clone method)
        flags - flag that is passed to setSpan
        localeSettings - locale settings to use
        Returns:
        spanned name of object
      • getIconName

        @Nullable
        public java.lang.String getIconName()
        Returns:
        Icon name of the category.
      • getChilds

        public GLSearchCategory[] getChilds()
        Returns:
        Child categories of the category.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object