void () { myInUpdate = true; Color searchBg = mySearchFieldWithoutBorder ? myList.getBackground() : UIUtil.getTextFieldBackground(); mySearchField.getTextEditor().setBackground(searchBg); onSpeedSearchPatternChanged(); mySearchField.setText(getFilter()); if (!mySearchAlwaysVisible) { if (shouldBeActive() && !searchFieldShown) { mySearchField.setVisible(true); searchFieldShown = true; } else if (!shouldBeActive() && searchFieldShown) { mySearchField.setVisible(false); searchFieldShown = false; } } myInUpdate = false; revalidate(); }