public void addOption(String value, String text, String filterText, boolean placeholder, boolean selected, boolean disabled) { addOption(value, text, filterText, placeholder, selected, disabled, null/*icon*/, null/*customIcon*/); }
public void addOptions(String... texts) { if (texts != null) { for (String s : texts) addOption(s, s); } }
/** * Adds an option with the given value and text. The option is added at * the end of the list of options. */ public void addOption(String value, String text) { addOption(value, text, null/*filterText*/); }
/** * Adds an option with the given value and text. The option is added at * the end of the list of options. */ public void addOption(String value, String text) { addOption(value, text, null/*filterText*/); }
/** * Adds an option with the given text. The text is also used as the value. * The option is added at the end of the list of options. * <br> * If you want to specify a value diferent from the display text, then * invoke addOption(String, String). */ public void addOption(String text) { addOption(text, text); }
public void addOptions(String... texts) { if (texts != null) { for (String s : texts) addOption(s, s); } }
/** * Adds an option with the given value and text. The option is added at * the end of the list of options. */ public void addOption(String value, String text) { addOption(value, text, null/*filterText*/); }
public void addOption(String value, String text, String filterText, boolean placeholder, boolean selected, boolean disabled) { addOption(value, text, filterText, placeholder, selected, disabled, null/*icon*/, null/*customIcon*/); }
public void addOption(String value, String text, String filterText, boolean placeholder, boolean selected, boolean disabled) { addOption(value, text, filterText, placeholder, selected, disabled, null/*icon*/, null/*customIcon*/); }
/** * Adds an option with the given text. The text is also used as the value. * The option is added at the end of the list of options. * <br> * If you want to specify a value diferent from the display text, then * invoke addOption(String, String). */ public void addOption(String text) { addOption(text, text); }
/** * Adds an option with the given text. The text is also used as the value. * The option is added at the end of the list of options. * <br> * If you want to specify a value diferent from the display text, then * invoke addOption(String, String). */ public void addOption(String text) { addOption(text, text); }
public void addOptions(String... texts) { if (texts != null) { for (String s : texts) addOption(s, s); } }
public JQMSelect withOption(String value, String text) { addOption(value, text); return this; }
public JQMSelect withOption(String value, String text) { addOption(value, text); return this; }
/** * @param values - comma separated list of option values, i.e. dropdown values. Useful for UiBinder. */ public void setOptionValues(String values) { if (values == null || values.isEmpty()) { clear(); } else { String[] arr = values.split(","); for (int i = 0; i < arr.length; i++) { addOption(arr[i], arr[i]); } } }
/** * @param values - comma separated list of option values, i.e. dropdown values. Useful for UiBinder. */ public void setOptionValues(String values) { if (values == null || values.isEmpty()) { clear(); } else { String[] arr = values.split(","); for (int i = 0; i < arr.length; i++) { addOption(arr[i], arr[i]); } } }
/** * @param values - comma separated list of option values, i.e. dropdown values. Useful for UiBinder. */ public void setOptionValues(String values) { if (values == null || values.isEmpty()) { clear(); } else { String[] arr = values.split(","); for (int i = 0; i < arr.length; i++) { addOption(arr[i], arr[i]); } } }
@UiChild public void addOption(Option option) { addOption(option.value, option.text, option.filterText, option.isPlaceholder(), option.isSelected(), option.isDisabled(), option.getIcon(), option.getCustomIcon()); }
@UiChild public void addOption(Option option) { addOption(option.value, option.text, option.filterText, option.isPlaceholder(), option.isSelected(), option.isDisabled(), option.getIcon(), option.getCustomIcon()); }
@UiChild public void addOption(Option option) { addOption(option.value, option.text, option.filterText, option.isPlaceholder(), option.isSelected(), option.isDisabled(), option.getIcon(), option.getCustomIcon()); }