|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.SuggestOracle.Response
public static class SuggestOracle.Response
SuggestOracle
response.
Can optionally have truncation information provided. To indicate that there are more results but the number is not known, use:
response.setMoreSuggestions(true);
Or to indicate more results with an exact number, use:
response.setMoreSuggestionsCount(102);
Constructor Summary | |
---|---|
SuggestOracle.Response()
Constructor for SuggestOracle.Response . |
|
SuggestOracle.Response(java.util.Collection<? extends SuggestOracle.Suggestion> suggestions)
Constructor for SuggestOracle.Response . |
Method Summary | |
---|---|
int |
getMoreSuggestionsCount()
Gets how many more suggestions there are. |
java.util.Collection<? extends SuggestOracle.Suggestion> |
getSuggestions()
Gets the collection of suggestions. |
boolean |
hasMoreSuggestions()
Gets whether or not the suggestion list was truncated due to the SuggestOracle.Request.getLimit() . |
void |
setMoreSuggestions(boolean moreSuggestions)
Sets whether or not the suggestion list was truncated due to the SuggestOracle.Request.getLimit() . |
void |
setMoreSuggestionsCount(int count)
Sets whether or not the suggestion list was truncated due to the SuggestOracle.Request.getLimit() , by providing an exact count of remaining
suggestions. |
void |
setSuggestions(java.util.Collection<? extends SuggestOracle.Suggestion> suggestions)
Sets the suggestions for this response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuggestOracle.Response()
SuggestOracle.Response
.
public SuggestOracle.Response(java.util.Collection<? extends SuggestOracle.Suggestion> suggestions)
SuggestOracle.Response
.
suggestions
- each element of suggestions must implement the
SuggestOracle.Suggestion
interfaceMethod Detail |
---|
public int getMoreSuggestionsCount()
public java.util.Collection<? extends SuggestOracle.Suggestion> getSuggestions()
SuggestOracle.Suggestion
interface.
public boolean hasMoreSuggestions()
SuggestOracle.Request.getLimit()
.
public void setMoreSuggestions(boolean moreSuggestions)
SuggestOracle.Request.getLimit()
.
public void setMoreSuggestionsCount(int count)
SuggestOracle.Request.getLimit()
, by providing an exact count of remaining
suggestions.
count
- number of truncated suggestions. Pass 0 to indicate there
are no other suggestions, which is equivalent to
setMoreSuggestions(false)
.public void setSuggestions(java.util.Collection<? extends SuggestOracle.Suggestion> suggestions)
SuggestOracle.Suggestion
interface.
suggestions
- the suggestions
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |