java.lang.Object | ||
↳ | com.google.gwt.user.client.ui.SuggestBox.SuggestionDisplay | |
↳ | com.google.gwt.user.client.ui.SuggestBox.DefaultSuggestionDisplay |
The default implementation of SuggestBox.SuggestionDisplay
displays
suggestions in a PopupPanel
beneath the SuggestBox
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new
SuggestBox.DefaultSuggestionDisplay . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Hide the list of suggestions from view.
| |||||||||||
Returns true if animations are enabled, false if not.
| |||||||||||
Check whether or not the suggestion list is hidden when there are no
suggestions to display.
| |||||||||||
Check whether or not the list of suggestions is being shown.
| |||||||||||
Enable or disable animations.
| |||||||||||
Sets the style name of the suggestion popup.
| |||||||||||
Sets the UI object where the suggestion display should appear next to.
| |||||||||||
Set whether or not the suggestion list should be hidden when there are
no suggestions to display.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create the PopupPanel that will hold the list of suggestions.
| |||||||||||
Wrap the list of suggestions before adding it to the popup.
| |||||||||||
Get the currently selected
SuggestOracle.Suggestion in the display. | |||||||||||
Get the
PopupPanel used to display suggestions. | |||||||||||
Highlight the suggestion directly below the current selection in the
list.
| |||||||||||
Highlight the suggestion directly above the current selection in the
list.
| |||||||||||
Affected Elements:
| |||||||||||
Update the list of visible suggestions.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.SuggestBox.SuggestionDisplay
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasAnimation
|
Hide the list of suggestions from view.
Returns true if animations are enabled, false if not.
Check whether or not the suggestion list is hidden when there are no suggestions to display.
Check whether or not the list of suggestions is being shown.
Enable or disable animations.
enable | true to enable, false to disable |
---|
Sets the style name of the suggestion popup.
style | the new primary style name |
---|
Sets the UI object where the suggestion display should appear next to.
uiObject | the uiObject used for positioning, or null to position relative to the suggest box |
---|
Set whether or not the suggestion list should be hidden when there are no suggestions to display. Defaults to true.
hideWhenEmpty | true to hide when empty, false not to |
---|
Create the PopupPanel that will hold the list of suggestions.
Wrap the list of suggestions before adding it to the popup. You can override this method if you want to wrap the suggestion list in a decorator.
suggestionList | the widget that contains the list of suggestions |
---|
Get the currently selected SuggestOracle.Suggestion
in the display.
Get the PopupPanel
used to display suggestions.
Highlight the suggestion directly below the current selection in the list.
Highlight the suggestion directly above the current selection in the list.
Affected Elements:
baseID | the baseID of the SuggestBox |
---|
Update the list of visible suggestions. Use care when using isDisplayStringHtml; it is an easy way to expose script-based security problems.
suggestBox | the suggest box where the suggestions originated |
---|---|
suggestions | the suggestions to show |
isDisplayStringHTML | should the suggestions be displayed as HTML |
isAutoSelectEnabled | if true, the first item should be selected automatically |
callback | the callback used when the user makes a suggestion |