/** * Adds a new radio button to this radioset using the given string for both * the value and the text. Returns a JQMRadio instance which can be used to * change the value and label of the radio button. * * This method is the same as calling addRadio(String, String) with the same * string twice. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * The value will also be used for the label. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value) { return addRadio(value, value); }
/** * Adds a new radio button to this radioset using the given string for both * the value and the text. Returns a JQMRadio instance which can be used to * change the value and label of the radio button. * * This method is the same as calling addRadio(String, String) with the same * string twice. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * The value will also be used for the label. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value) { return addRadio(value, value); }
/** * Adds a new radio button to this radioset using the given string for both * the value and the text. Returns a JQMRadio instance which can be used to * change the value and label of the radio button. * * This method is the same as calling addRadio(String, String) with the same * string twice. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * The value will also be used for the label. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value) { return addRadio(value, value); }
/** * Adds a new radio button to this radioset using the given value and text. * Returns a JQMRadio instance which can be used to change the value and * label of the radio button. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * * @param text * the label to show for this radio option. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value, String text) { JQMRadio radio = new JQMRadio(value, text); addRadio(radio); return radio; }
/** * Adds a new radio button to this radioset using the given value and text. * Returns a JQMRadio instance which can be used to change the value and * label of the radio button. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * * @param text * the label to show for this radio option. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value, String text) { JQMRadio radio = new JQMRadio(value, text); addRadio(radio); return radio; }
/** * Adds a new radio button to this radioset using the given value and text. * Returns a JQMRadio instance which can be used to change the value and * label of the radio button. * * @param value * the value to associate with this radio option. This will be * the value returned by methods that query the selected value. * * @param text * the label to show for this radio option. * * @return a JQMRadio instance to adjust the added radio button */ public JQMRadio addRadio(String value, String text) { JQMRadio radio = new JQMRadio(value, text); addRadio(radio); return radio; }