Package globus.glsearch
Class GLSearchCategory
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glsearch.GLSearchCategory
-
public class GLSearchCategory extends globus.glmap.GLNativeObjectGLSearchCategoryholds information about category that can be displayed to user.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)GLSearchCategory[]getChilds()java.lang.StringgetIconName()inthashCode()java.lang.StringlocalizedName(globus.glmap.GLMapLocaleSettings localeSettings)Returns name of the category according language priority settings.booleannativeEquals(GLSearchCategory other)android.text.SpannableStringspannedName(java.lang.Object normal, java.lang.Object highlighted, int flags, globus.glmap.GLMapLocaleSettings localeSettings)Returns spanned name where parts that matched search are highlighted.
-
-
-
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 setSpanlocaleSettings- 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
nativeEquals
public boolean nativeEquals(GLSearchCategory other)
-
-