/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
/** * Unfortunately it's not called in case of manual JQMContext.render(), * though widget is getting created and enhanced. */ private void created() { if (checkSelectedIndex()) refresh(); }
private void created() { created = true; if (checkSelectedIndex()) refresh(); }
/** * Returns the index of the currently selected option */ public int getSelectedIndex() { checkSelectedIndex(); return select.getSelectedIndex(); }
private void created() { created = true; if (checkSelectedIndex()) refresh(); }
public void endAddOptions() { addingOptions = false; if (!addingOptionList.isEmpty()) { SelectElement selElt = select.getElement().cast(); int i = selElt.getOptions().getLength(); for (OptionElement opt : addingOptionList) { selElt.add(opt, null/*to tail*/); addToSelectIdx(opt.getValue(), i); i++; } checkSelectedIndex(); } addingOptionList = null; if (delayedValue != null) tryResolveDelayed(); }
public void endAddOptions() { addingOptions = false; if (!addingOptionList.isEmpty()) { SelectElement selElt = select.getElement().cast(); int i = selElt.getOptions().getLength(); for (OptionElement opt : addingOptionList) { selElt.add(opt, null/*to tail*/); addToSelectIdx(opt.getValue(), i); i++; } checkSelectedIndex(); } addingOptionList = null; if (delayedValue != null) tryResolveDelayed(); }
public void endAddOptions() { addingOptions = false; if (!addingOptionList.isEmpty()) { SelectElement selElt = select.getElement().cast(); int i = selElt.getOptions().getLength(); for (OptionElement opt : addingOptionList) { selElt.add(opt, null/*to tail*/); addToSelectIdx(opt.getValue(), i); i++; } checkSelectedIndex(); } addingOptionList = null; if (delayedValue != null) tryResolveDelayed(); }
@Override protected void onLoad() { super.onLoad(); Element elt = select.getElement(); bindCreated(elt, this); if (!jsServed) { jsServed = true; serveSelects(); } if (isInstance(select.getElement())) { if (checkSelectedIndex()) refresh(); } }
if (!isMultiple()) internSetSelectedIndex(0); // for compatibility with previous versions } else { checkSelectedIndex(); checkSelectedIndex();
if (!isMultiple()) internSetSelectedIndex(0); // for compatibility with previous versions } else { checkSelectedIndex(); checkSelectedIndex();
if (!isMultiple()) internSetSelectedIndex(0); // for compatibility with previous versions } else { checkSelectedIndex(); checkSelectedIndex();