public void clear ( ) { itemBox . setValue ( "" ) ; label . removeStyleName ( CssName . ACTIVE ) ; Collection < Widget > values = suggestionMap . values ( ) ; for ( Widget widget : values ) { Widget parent = widget . getParent ( ) ; if ( parent instanceof ListItem ) { parent . removeFromParent ( ) ; } } suggestionMap . clear ( ) ; clearStatusText ( ) ; }
Clear the chip items on the autocomplete box