Friday, August 23, 2013

doesn't allow to create a keydownhandler for the suggest box


I am trying to create a keydownhandler event for the suggest box but it won't allow me to do so? why

It shows this error
" The method addKeyDownHandler(KeyDownHandler) in the type SuggestBox is not applicable for the arguments (new KeyDownHandler(){})"

Here is my code:

private MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
private SuggestBox suggestBox = new SuggestBox(oracle);
suggestBox.addKeyDownHandler(new KeyDownHandler(){

public void onKeyDown(KeyDownEvent event) {
// TODO Auto-generated method stub

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment