You just have to create a class that implements SuggestOracle and then 
provide it to the SuggestBox through one of its constructors.

The SuggestOracle requires a single method to be implemented. That method 
gives you access to the "request" the user has made (query, result limits) 
and the method provides a callback where you push your suggestion results 
to once you have calculated them. Because you get a callback you can easily 
do async requests to the server to calculate suggestions.

To push the result to the callback you need to use SuggestOracle.Response 
and fill this response with a list of suggestions. So your class that 
represents your suggestion entries needs to implement Suggestion.

Its pretty self explanatory once you see the method you need to implement.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to