|
Expresso 5-6 | ||||||||||
| 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.Radio
Encapsulates an HTML radio box on an HTML form
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Radio(String newFieldName)
Constructor Create a new Radio list with the specified field name |
|
Radio(String newFieldName,
String newCurrentValue)
Create a drop down with the field name as given with a specific current value |
|
| Method Summary | |
void |
addOption(String fieldValue,
String fieldLabel)
Add a new option to this radio |
protected void |
display(PrintWriter out,
int depth)
Display this Radio to the appropriate PrintWriter |
void |
setCurrentValue(String newCurrentValue)
Set the currently selected value for this radio |
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 |
| Constructor Detail |
public Radio(String newFieldName)
throws HtmlException
newFieldName - Field name of the new drop down, must not be null
HtmlException - If the parameter is invalid
public Radio(String newFieldName,
String newCurrentValue)
throws HtmlException
newFieldName - Field name of the new radionewCurrentValue - Current value of the drop down (selected item)
HtmlException - If the parameters are 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 HtmlElementdepth - the number of tabs to indentout - PrintWriter to display
HtmlException - If the Radio cannot be displayed
public void setCurrentValue(String newCurrentValue)
throws HtmlException
newCurrentValue - The value for this drop down
HtmlException - If the parameter is invalidpublic void setVertical(boolean state)
state - set to true for vertical radio buttons
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||