/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or there is more than one * control with that name. * @since 1.5.4 */ public void toggleCheckbox( String name ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox(); }
/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or there is more than one * control with that name. * @since 1.5.4 */ public void toggleCheckbox( String name ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox(); }
/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @param value of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or if there is no checkbox * with the specified name and value. * @since 1.6 */ public void toggleCheckbox( String name, String value ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox( value ); }
/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or there is more than one * control with that name. * @since 1.5.4 */ public void toggleCheckbox( String name ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox(); }
/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @param value of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or if there is no checkbox * with the specified name and value. * @since 1.6 */ public void toggleCheckbox( String name, String value ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox( value ); }
/** * Toggles the value of the specified checkbox parameter. * @param name the name of the checkbox parameter * @param value of the checkbox parameter * @throws IllegalArgumentException if the specified parameter is not a checkbox or if there is no checkbox * with the specified name and value. * @since 1.6 */ public void toggleCheckbox( String name, String value ) { FormParameter parameter = getParameter( name ); if (parameter == null) throw new NoSuchParameterException( name ); parameter.toggleCheckbox( value ); }