|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.CheckBox
An HTML checkbox for use on HTML forms
| Field Summary | |
protected String |
currentValue
|
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
CheckBox()
Constructor |
|
CheckBox(String newFieldName,
String newCurrentValue)
Create a checkbox with the field name as given with a specific current value |
|
CheckBox(String newFieldName,
String newFieldValue,
boolean newChecked)
Constructor Create the checkbox with a given name and value and state |
|
| Method Summary | |
void |
addOption(String fieldValue,
String fieldLabel)
Add a new option to this checkbox |
protected void |
display(PrintWriter out,
int depth)
Display this CheckBox to the appropriate PrintWriter |
void |
setChecked(boolean newChecked)
Set the current "checked" status |
void |
setCurrentValue(String newCurrentValue)
Set the currently selected value for this checkbox |
void |
setVertical(boolean state)
|
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String currentValue
| Constructor Detail |
public CheckBox()
throws HtmlException
HtmlException - If the superclass constructor fails
public CheckBox(String newFieldName,
String newCurrentValue)
throws HtmlException
newFieldName - Field name of the new checkboxnewCurrentValue - Current value of the drop down (selected item)
HtmlException - If the parameters are invalid
public CheckBox(String newFieldName,
String newFieldValue,
boolean newChecked)
throws HtmlException
newFieldName - Name of the field on the formnewFieldValue - Value of the field when checkednewChecked - True if the box's initial state is checked, else false
HtmlException - If a parameter is invalid| Method Detail |
public void addOption(String fieldValue,
String fieldLabel)
throws HtmlException
fieldValue - Value of the new optionfieldLabel - Label of the new option
HtmlException - If the parameters are invalid
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementout - PrintWriter to displaydepth - the number of tabs to indent
HtmlException - If the Radio cannot be displayed
public void setChecked(boolean newChecked)
throws HtmlException
newChecked - set to true if checked
HtmlException - If the parameter is invalid
public void setCurrentValue(String newCurrentValue)
throws HtmlException
newCurrentValue - The value for this checkbox
HtmlException - If the parameter is invalidpublic void setVertical(boolean state)
state - set to true if the checkboxes are vertical
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||