}
private Widget manuallyShowAndHide() {
FlexTable t = new FlexTable();
t.getFlexCellFormatter().setColSpan(0, 0, 20);
final SuggestBox box = simpleSuggestBox();
box.setAnimationEnabled(true);
t.setWidget(0, 0, box);
Button showSuggestions = new Button(
"show suggestions, then hide after 2 seconds", new ClickHandler() {
public void onClick(ClickEvent event) {
box.showSuggestionList();
new Timer() {
@Override
public void run() {
box.hideSuggestionList();
}
}.schedule(2000);
}
});