public abstract static class SuggestBox.SuggestionDisplay
extends java.lang.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.
|
(package private) boolean |
isAnimationEnabledImpl()
Deprecated.
implemented in DefaultSuggestionDisplay
|
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(java.lang.String suggestBoxBaseID)
Set the debug id of widgets used in the SuggestionDisplay.
|
(package private) void |
setAnimationEnabledImpl(boolean enable)
Deprecated.
implemented in DefaultSuggestionDisplay
|
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) . |
(package private) void |
setPopupStyleNameImpl(java.lang.String style)
Deprecated.
implemented in DefaultSuggestionDisplay
|
protected abstract void |
showSuggestions(SuggestBox suggestBox,
java.util.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(java.lang.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, java.util.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 suggestion@Deprecated boolean isAnimationEnabledImpl()
public boolean isSuggestionListShowing()
@Deprecated void setAnimationEnabledImpl(boolean enable)
enable
- true to enable animation@Deprecated void setPopupStyleNameImpl(java.lang.String style)
style
- the style name