public void clear ( ) { valueBoxBase . setText ( "" ) ; clearStatusText ( ) ; if ( getPlaceholder ( ) == null || getPlaceholder ( ) . isEmpty ( ) ) { label . removeStyleName ( CssName . ACTIVE ) ; } }
Resets the text box by removing its content and resetting visual state .