public abstract static class SuggestBox.SuggestionDisplay extends Object
Constructor and Description |
---|
SuggestionDisplay() |
Modifier and Type | Method and Description |
---|---|
protected abstract SuggestOracle.Suggestion |
getCurrentSelection()
Get the currently selected
SuggestOracle.Suggestion in the display. |
protected abstract void |
hideSuggestions()
Hide the list of suggestions from view.
|
boolean |
isSuggestionListShowing()
Check whether or not the list of suggestions is being shown.
|
protected abstract void |
moveSelectionDown()
Highlight the suggestion directly below the current selection in the
list.
|
protected abstract void |
moveSelectionUp()
Highlight the suggestion directly above the current selection in the
list.
|
protected void |
onEnsureDebugId(String suggestBoxBaseID)
Set the debug id of widgets used in the SuggestionDisplay.
|
protected void |
setMoreSuggestions(boolean hasMoreSuggestions,
int numMoreSuggestions)
Accepts information about whether there were more suggestions matching
than were provided to
showSuggestions(com.google.gwt.user.client.ui.SuggestBox, java.util.Collection<? extends com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, boolean, boolean, com.google.gwt.user.client.ui.SuggestBox.SuggestionCallback) . |
protected abstract void |
showSuggestions(SuggestBox suggestBox,
Collection<? extends SuggestOracle.Suggestion> suggestions,
boolean isDisplayStringHTML,
boolean isAutoSelectEnabled,
SuggestBox.SuggestionCallback callback)
Update the list of visible suggestions.
|
protected abstract SuggestOracle.Suggestion getCurrentSelection()
SuggestOracle.Suggestion
in the display.protected abstract void hideSuggestions()
protected abstract void moveSelectionDown()
protected abstract void moveSelectionUp()
protected void onEnsureDebugId(String suggestBoxBaseID)
suggestBoxBaseID
- the baseID of the SuggestBox
UIObject.onEnsureDebugId(String)
protected void setMoreSuggestions(boolean hasMoreSuggestions, int numMoreSuggestions)
showSuggestions(com.google.gwt.user.client.ui.SuggestBox, java.util.Collection<? extends com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, boolean, boolean, com.google.gwt.user.client.ui.SuggestBox.SuggestionCallback)
.hasMoreSuggestions
- true if more matches were availablenumMoreSuggestions
- number of more matches available. If the
specific number is unknown, 0 will be passed.protected abstract void showSuggestions(SuggestBox suggestBox, Collection<? extends SuggestOracle.Suggestion> suggestions, boolean isDisplayStringHTML, boolean isAutoSelectEnabled, SuggestBox.SuggestionCallback callback)
suggestBox
- the suggest box where the suggestions originatedsuggestions
- the suggestions to showisDisplayStringHTML
- should the suggestions be displayed as HTMLisAutoSelectEnabled
- if true, the first item should be selected
automaticallycallback
- the callback used when the user makes a suggestionpublic boolean isSuggestionListShowing()
Copyright © 2018. All rights reserved.