/** * Sets the selected value to the given value. If no option matches the * given value then the selected is removed. */ @Override public void setValue(String value) { setValue(value, false); }
/** * Sets the selected value to the given value. If no option matches the * given value then the selected is removed. */ @Override public void setValue(String value) { setValue(value, false); }
/** * Sets the selected value to the given value. If no option matches the * given value then the selected is removed. */ @Override public void setValue(String value) { setValue(value, false); }
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
protected void closeAndClearValue() { this.close(); this.setValue(null, true/*fireEvents*/); }
public void massChangeOptions(ChangeOptionsAction action) { if (action == null) return; String v = getValue(); final String val = v != null ? v : getDelayedValue(); boolean changed = action.doChange(this); if (!changed) return; rebuildSearchIndex(); if (val != null) { if (!val.equals(getValue())) { setValue(val, false/*fireEvents*/); } } else { setSelectedIndex(-1); // any addOption() call resets selectedIndex from -1 to 0, so we have to fix that } }
public void massChangeOptions(ChangeOptionsAction action) { if (action == null) return; String v = getValue(); final String val = v != null ? v : getDelayedValue(); boolean changed = action.doChange(this); if (!changed) return; rebuildSearchIndex(); if (val != null) { if (!val.equals(getValue())) { setValue(val, false/*fireEvents*/); } } else { setSelectedIndex(-1); // any addOption() call resets selectedIndex from -1 to 0, so we have to fix that } }
public void massChangeOptions(ChangeOptionsAction action) { if (action == null) return; String v = getValue(); final String val = v != null ? v : getDelayedValue(); boolean changed = action.doChange(this); if (!changed) return; rebuildSearchIndex(); if (val != null) { if (!val.equals(getValue())) { setValue(val, false/*fireEvents*/); } } else { setSelectedIndex(-1); // any addOption() call resets selectedIndex from -1 to 0, so we have to fix that } }
/** Should be used in case we want to move select to another parent panel. */ public void moveTo(Panel panel) { if (panel == null) return; Widget p = getParent(); if (p == panel) return; if (created) { // on iOS moving JQMSelect from one panel to another is making it "stuck" String v = getValue(); panel.add(this); refresh(); setValue(v); } else { panel.add(this); } }
/** Should be used in case we want to move select to another parent panel. */ public void moveTo(Panel panel) { if (panel == null) return; Widget p = getParent(); if (p == panel) return; if (created) { // on iOS moving JQMSelect from one panel to another is making it "stuck" String v = getValue(); panel.add(this); refresh(); setValue(v); } else { panel.add(this); } }
/** Should be used in case we want to move select to another parent panel. */ public void moveTo(Panel panel) { if (panel == null) return; Widget p = getParent(); if (p == panel) return; if (isInstance(select.getElement())) { // on iOS moving JQMSelect from one panel to another is making it "stuck" String v = getValue(); if (v == null) v = getDelayedValue(); panel.add(this); refresh(); setValue(v); } else { panel.add(this); } }