/////////////////////////////////////////////////////////
// Use a SuggestBox with a MultiWordSuggestOracle.
//
// A map from a suggestion to its corresponding Option:
final Map<String,Option> suggestions = new HashMap<String,Option>();
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle("/ :-");
for ( Option option : options ) {
String suggestion = option.getName()+ " - " +option.getUri();
suggestions.put(suggestion, option);
oracle.add(suggestion);
}
final SuggestBox suggestBox = new SuggestBox(oracle);
suggestBox.setWidth(width);
suggestBox.addEventHandler(new SuggestionHandler() {