public void onClick(ClickEvent event) { // autoCompleteTextField should not loose focus this.textField.setFocus(true, false); Cell clickCell = ((HTMLTable) event.getSource()).getCellForEvent(event); textField.insertString(clickCell.getElement().getInnerText()); hide(); }
/** Ensure the popup toggle button is updated after hiding */ @Override public void hide(boolean autoClosed) { super.hide(autoClosed); textField.toggleSymbolButton(false); AutoCompleteTextFieldW.showSymbolButtonFocused = false; }