@UiHandler("filter") public void onFilterSelected(KeyUpEvent event) { if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER || filter.getTextBox().getText().isEmpty()) { // variables list has changed so update all getUiHandlers().filterVariables(filter.getTextBox().getText()); } }
@Override public void setFilterText(String text) { filter.setText(text); }
@Override public String getFilterText() { return filter.getText(); }
private void initializeDisplayOptions() { filter.getClear().setTitle(translations.clearFilter()); filter.getTextBox().setPlaceholder(translations.filterVariables()); }