Package globus.glsearch
Class GLSearchCategories
java.lang.Object
globus.glmap.GLNativeObject
globus.glsearch.GLSearchCategories
@ParametersAreNonnullByDefault
public class GLSearchCategories
extends globus.glmap.GLNativeObject
GLSearchCategories class holds a set of `GLSearchCategory` that will be used to sort search results by priority.-
Method Summary
Modifier and Type Method Description GLSearchCategoryfindByIconName(java.lang.String iconName)GLSearchCategoryfindByName(java.lang.String name)static GLSearchCategoriesgetShared()GLSearchCategory[]getStartedWith(java.lang.String[] words, globus.glmap.GLMapLocaleSettings localeSettings)Returns categories that starts with given wordsGLSearchCategory[]getTop()Methods inherited from class globus.glmap.GLNativeObject
disposeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getTop
- Returns:
- Returns top categories
-
getStartedWith
@Nullable public GLSearchCategory[] getStartedWith(java.lang.String[] words, globus.glmap.GLMapLocaleSettings localeSettings)Returns categories that starts with given words- Parameters:
words- Words arraylocaleSettings- Language priority settings- Returns:
- Matched array of categories
-
findByName
- Parameters:
name- name of category- Returns:
- Returns category with given name.
-
findByIconName
- Parameters:
iconName- Icon name- Returns:
- Returns category with given name.