Fixes Issue #1096. Adds MultiWordSuggestOracle.clear() Patch by: rdayal Review by: knorton git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1279 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/MultiWordSuggestOracle.java b/user/src/com/google/gwt/user/client/ui/MultiWordSuggestOracle.java index 19185a2..4453854 100644 --- a/user/src/com/google/gwt/user/client/ui/MultiWordSuggestOracle.java +++ b/user/src/com/google/gwt/user/client/ui/MultiWordSuggestOracle.java
@@ -191,6 +191,15 @@ } } + /** + * Removes all of the suggestions from the oracle. + */ + public void clear() { + tree.clear(); + toCandidates.clear(); + toRealSuggestions.clear(); + } + public boolean isDisplayStringHTML() { return true; } @@ -329,8 +338,7 @@ /** * Creates a set of potential candidates that match the given query. - * - * @param limit number of candidates to return + * * @param query query string * @return possible candidates */