File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/main/java/gwt/material/design/addins/client/combobox Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 4646
4747import java .util .ArrayList ;
4848import java .util .Collection ;
49+ import java .util .Iterator ;
4950import java .util .List ;
5051
5152import static gwt .material .design .addins .client .combobox .js .JsComboBox .$ ;
@@ -211,6 +212,17 @@ public void add(Widget child) {
211212 listbox .add (child );
212213 }
213214
215+ @ Override
216+ public void clear () {
217+ final Iterator <Widget > it = iterator ();
218+ while (it .hasNext ()) {
219+ final Widget widget = it .next ();
220+ if (widget != label && widget != lblError && widget != listbox ) {
221+ it .remove ();
222+ }
223+ }
224+ }
225+
214226 /**
215227 * Sets multi-value select boxes.
216228 */
@@ -582,4 +594,4 @@ public MaterialWidget getListbox() {
582594 public Label getLabel () {
583595 return label ;
584596 }
585- }
597+ }
You can’t perform that action at this time.
0 commit comments