public TextField createSearchField ( final TextChangeListener textChangeListener ) { final TextField textField = style ( "filter-box" ) . styleName ( "text-style filter-box-hide" ) . buildTextComponent ( ) ; textField . setWidth ( 100.0F , Unit . PERCENTAGE ) ; textField . addTextChangeListener ( textChangeListener ) ; textField . setTextChangeEventMode ( TextChangeEventMode . LAZY ) ; // 1 seconds timeout. textField . setTextChangeTimeout ( 1000 ) ; return textField ; }
Create a search text field .