| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement com.jcorporate.expresso.services.html.CheckBox
CheckBox | public class CheckBox extends HtmlElement (Code) | | An HTML checkbox for use on HTML forms
author: Michael Nash version: $Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $ |
CheckBox | public CheckBox(String newFieldName, String newCurrentValue) throws HtmlException(Code) | | Create a checkbox with the field name as given with a specific current value
Parameters: newFieldName - Field name of the new checkbox Parameters: newCurrentValue - Current value of the drop down (selected item) throws: HtmlException - If the parameters are invalid |
CheckBox | public CheckBox(String newFieldName, String newFieldValue, boolean newChecked) throws HtmlException(Code) | | Constructor
Create the checkbox with a given name and value and state
Parameters: newFieldName - Name of the field on the form Parameters: newFieldValue - Value of the field when checked Parameters: newChecked - True if the box's initial state is checked, else false throws: HtmlException - If a parameter is invalid |
addOption | public synchronized void addOption(String fieldValue, String fieldLabel) throws HtmlException(Code) | | Add a new option to this checkbox
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 CheckBox to the appropriate PrintWriter
Parameters: out - PrintWriter to display Parameters: depth - the number of tabs to indent throws: HtmlException - If the Radio cannot be displayed |
setChecked | public void setChecked(boolean newChecked) throws HtmlException(Code) | | Set the current "checked" status
Parameters: newChecked - set to true if checked throws: HtmlException - If the parameter is invalid |
setCurrentValue | public void setCurrentValue(String newCurrentValue) throws HtmlException(Code) | | Set the currently selected value for this checkbox
Parameters: newCurrentValue - The value for this checkbox throws: HtmlException - If the parameter is invalid |
setVertical | public void setVertical(boolean state)(Code) | | Parameters: state - set to true if the checkboxes are vertical |
|
|