| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement com.jcorporate.expresso.services.html.Radio
Radio | public class Radio extends HtmlElement (Code) | | Encapsulates an HTML radio box on an HTML form
author: Michael P. Nash version: $Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $ |
Radio | public Radio(String newFieldName) throws HtmlException(Code) | | Constructor Create a new Radio list with the specified field name
Parameters: newFieldName - Field name of the new drop down, must not be null throws: HtmlException - If the parameter is invalid |
Radio | public Radio(String newFieldName, String newCurrentValue) throws HtmlException(Code) | | Create a drop down with the field name as given with a specific current value
Parameters: newFieldName - Field name of the new radio Parameters: newCurrentValue - Current value of the drop down (selected item) throws: HtmlException - If the parameters are invalid |
addOption | public synchronized void addOption(String fieldValue, String fieldLabel) throws HtmlException(Code) | | Add a new option to this radio
Parameters: fieldValue - Value of the new option Parameters: fieldLabel - Label of the new option throws: HtmlException - If the parameters are invalid |
display | protected synchronized void display(PrintWriter out, int depth) throws HtmlException(Code) | | Display this Radio to the appropriate PrintWriter
Parameters: depth - the number of tabs to indent Parameters: out - PrintWriter to display throws: HtmlException - If the Radio cannot be displayed |
setCurrentValue | public void setCurrentValue(String newCurrentValue) throws HtmlException(Code) | | Set the currently selected value for this radio
Parameters: newCurrentValue - The value for this drop down throws: HtmlException - If the parameter is invalid |
setVertical | public void setVertical(boolean state)(Code) | | Parameters: state - set to true for vertical radio buttons |
|
|