/** * 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; }