@Override public void onChange(ChangeEvent event) { if (!isMultiple()) mandatorySelIdx = select.getSelectedIndex(); fireValueChange(getValue()); } });
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
public JQMSelectFilterable() { super(); addStyleName(SELECT_FILTERABLE_STYLENAME); select.addStyleName(FILTERABLE_SELECT); setNative(false); }
/** * Remove the first option that matches the given value */ public void removeOption(String value) { int indexOf = indexOf(value); if (indexOf >= 0) { int i = getSelectedIndex(); if (i == indexOf) internSetSelectedIndex(-1); select.removeItem(indexOf); } }
/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
private static native void refresh(Element elt) /*-{ var w = $wnd.$(elt); if (w.data('mobile-selectmenu') !== undefined) { w.selectmenu('refresh'); } }-*/;
@Override protected void onLoad() { super.onLoad(); if (!jsServed) { jsServed = true; serveSelectsFilterable(); } }
@Override protected void onLoad() { super.onLoad(); checkBlurHandler(); }
/** * Remove the first option that matches the given value */ public void removeOption(String value) { int indexOf = indexOf(value); if (indexOf >= 0) { int i = getSelectedIndex(); if (i == indexOf) internSetSelectedIndex(-1); select.removeItem(indexOf); } }
public JQMSelectFilterable() { super(); addStyleName(SELECT_FILTERABLE_STYLENAME); select.addStyleName(FILTERABLE_SELECT); setNative(false); }
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
private static native void refresh(Element elt) /*-{ var w = $wnd.$(elt); if (w.data('mobile-selectmenu') !== undefined) { w.selectmenu('refresh'); } }-*/;
@Override protected void onLoad() { super.onLoad(); if (!jsServed) { jsServed = true; serveSelectsFilterable(); } }
/** * Remove the first option that matches the given value */ public void removeOption(String value) { int indexOf = indexOf(value); if (indexOf >= 0) { int i = getSelectedIndex(); if (i == indexOf) internSetSelectedIndex(-1); select.removeItem(indexOf); } }
public JQMSelectFilterable() { super(); addStyleName(SELECT_FILTERABLE_STYLENAME); select.addStyleName(FILTERABLE_SELECT); setNative(false); }
@Override public void setValue(String value, boolean fireEvents) { if (value == null) clearSearchInput(); super.setValue(value, fireEvents); }
/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
private static native void refresh(Element elt) /*-{ var w = $wnd.$(elt); if (w.data('mobile-selectmenu') !== undefined) { w.selectmenu('refresh'); } }-*/;