| java.lang.Object com.google.gwt.user.client.ui.SuggestOracle com.google.gwt.user.client.ui.MultiWordSuggestOracle
MultiWordSuggestOracle | final public class MultiWordSuggestOracle extends SuggestOracle (Code) | | The default
com.google.gwt.user.client.ui.SuggestOracle . The default
oracle returns potential suggestions based on breaking the query into
separate words and looking for matches. It also modifies the returned text to
show which prefix matched the query term. The matching is case insensitive.
All suggestions are sorted before being passed into a response.
Example Table
All Suggestions |
Query string |
Matching Suggestions |
John Smith, Joe Brown, Jane Doe, Jane Smith, Bob Jones |
Jo |
John Smith, Joe Brown, Bob Jones |
John Smith, Joe Brown, Jane Doe, Jane Smith, Bob Jones |
Smith |
John Smith, Jane Smith |
Georgia, New York, California |
g |
Georgia |
|
Inner Class :public static class MultiWordSuggestion implements Suggestion,IsSerializable | |
Constructor Summary | |
public | MultiWordSuggestOracle() Constructor for MultiWordSuggestOracle . | public | MultiWordSuggestOracle(String whitespaceChars) Constructor for MultiWordSuggestOracle which takes in a set
of whitespace chars that filter its input.
Example: If ".," is passed in as whitespace, then the string
"foo.bar" would match the queries "foo", "bar", "foo.bar", "foo...bar", and
"foo, bar". |
MultiWordSuggestOracle | public MultiWordSuggestOracle(String whitespaceChars)(Code) | | Constructor for MultiWordSuggestOracle which takes in a set
of whitespace chars that filter its input.
Example: If ".," is passed in as whitespace, then the string
"foo.bar" would match the queries "foo", "bar", "foo.bar", "foo...bar", and
"foo, bar". If the empty string is used, then all characters are used in
matching. For example, the query "bar" would match "bar", but not "foo
bar".
Parameters: whitespaceChars - the characters to treat as word separators |
add | public void add(String suggestion)(Code) | | Adds a suggestion to the oracle. Each suggestion must be plain text.
Parameters: suggestion - the suggestion |
addAll | public void addAll(Collection<String> collection)(Code) | | Adds all suggestions specified. Each suggestion must be plain text.
Parameters: collection - the collection |
clear | public void clear()(Code) | | Removes all of the suggestions from the oracle.
|
isDisplayStringHTML | public boolean isDisplayStringHTML()(Code) | | |
requestSuggestions | public void requestSuggestions(Request request, Callback callback)(Code) | | |
Methods inherited from com.google.gwt.user.client.ui.SuggestOracle | public boolean isDisplayStringHTML()(Code)(Java Doc) abstract public void requestSuggestions(Request request, Callback callback)(Code)(Java Doc)
|
|
|