Are there any ideas out there about how I might best add SuggestBox 
functionality to a CellTable and TextInputCell. Using an approach similar to 
what is happening inside SuggestBox.wrap() kinda works though it gets pretty 
hacky:

    @Override
    public void onBrowserEvent(Context context, Element parent, String 
value,
                               NativeEvent event, ValueUpdater<String> 
valueUpdater) {
        ...
        InputElement input = getInputElement(parent);

        if ("focus".equals(eventType)) {            
            TextBox textBox = new MyTextBox(input);
            MySuggestBox suggestBox = new MySuggestBox(oracle, textBox);
            suggestBox.onAttach();
        }
        ...
    }

There has to be a better way.

Cheers
Craig

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to