On Saturday, March 9, 2013 6:24:57 PM UTC+1, membersound wrote:
>
> HI,
>
> I have a SuggestBox, and want to know how many items are currently 
> displayed.
> There is a private int SuggestionMenu.getNumItems() which would return 
> this number. How can I access this or similar method to return the 
> suggestions list size?
>

SuggestionDisplay's 
showSuggestions<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/SuggestBox.SuggestionDisplay.html#showSuggestions(com.google.gwt.user.client.ui.SuggestBox,
 
java.util.Collection, boolean, boolean, 
com.google.gwt.user.client.ui.SuggestBox.SuggestionCallback)> is passed the 
Collection of suggestions, you can thus easily extend 
DefaultSuggestionDisplay  and store the collection's size in a field to 
retrieve it later. 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to