public interface AutoComplete
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSearchSuggestion(java.lang.String typedText)
Add the additional search text suggestion in the popup Window.
|
void |
addAdditionalSearchText(java.lang.String text)
Add the additional search item in the popup.
|
boolean |
addCategory(AutoCompleteDictionary.Category category)
Add a category to the dictionary.
|
void |
addCategory(java.lang.String category)
Add a category to the dictionary.
|
void |
addCategoryToSuggestions(AutoCompleteDictionary.Category category)
Add a category to the list of suggestions in the Popup Window.
|
boolean |
addItemToSuggestions(java.lang.String category,
AutoCompleteDictionary.Item item)
Add a category to the list of suggestions in the Popup Window.
|
void |
addToDictionary(AutoCompleteDictionary.Item item)
Add an item to the dictionary to use for the autoComplete.
|
void |
addToDictionary(java.lang.String word)
Add a word to the dictionary to use for the autoComplete.
|
void |
addToDictionary(java.lang.String category,
AutoCompleteDictionary.Item item)
Add an item to the dictionary to use for the autoComplete.
|
void |
addToDictionary(java.lang.String category,
java.lang.String word)
Add a word to the dictionary to use for the autoComplete.
|
AutoCompleteDictionary |
getDictionary()
Return the dictionnary used for the Autocompletion.
|
default int |
getResultsLimit()
Return the results limits.
|
boolean |
hasAdditionalSearchItem()
Return true if there is an additional search item in the popup.
|
void |
resetDictionary()
Reset the Dictionnary to use for the autoComplete.
|
void |
setDictionnary(AutoCompleteDictionary dictionary)
Set the dictionnary used for the Autocompletion.
|
void |
setMaximumPopupSize(int maxWidth,
int maxHeight)
Set the maximum width and height of the Popup.
|
AutoCompleteDictionary getDictionary()
void setDictionnary(AutoCompleteDictionary dictionary)
dictionary
- the dictionnaryvoid resetDictionary()
boolean addCategory(AutoCompleteDictionary.Category category)
category
- the categoryvoid addCategory(java.lang.String category)
category
- the category namevoid addToDictionary(java.lang.String word)
word
- the wordvoid addToDictionary(AutoCompleteDictionary.Item item)
item
- the itemvoid addToDictionary(java.lang.String category, java.lang.String word)
category
- the item categoryword
- the wordvoid addToDictionary(java.lang.String category, AutoCompleteDictionary.Item item)
category
- the item categoryitem
- the itemvoid setMaximumPopupSize(int maxWidth, int maxHeight)
maxWidth
- the maximum width of the PopupmaxHeight
- the maximum height of the Popupvoid addCategoryToSuggestions(AutoCompleteDictionary.Category category)
AutoCompleteEngine
used for the search with a Popup Window.category
- the categoryboolean addItemToSuggestions(java.lang.String category, AutoCompleteDictionary.Item item)
AutoCompleteEngine
used for the search with a Popup Window.category
- the category nameitem
- the Itemvoid addAdditionalSearchSuggestion(java.lang.String typedText)
typedText
- the typed textvoid addAdditionalSearchText(java.lang.String text)
text
- the text for the additional search itemboolean hasAdditionalSearchItem()
default int getResultsLimit()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence