|
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.DropDown
Encapsulates an HTML drop-down box on an HTML form
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
DropDown(String newFieldName)
Constructor Create a new DropDown list with the specified field name |
|
DropDown(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 drop-down |
protected void |
display(PrintWriter out,
int depth)
Display this DropDown to the appropriate PrintWriter |
void |
setCurrentValue(String newCurrentValue)
Set the currently selected value for this drop-down |
| 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 DropDown(String newFieldName)
throws HtmlException
newFieldName - Field name of the new drop down, must not be null
HtmlException - If the parameter is invalid
public DropDown(String newFieldName,
String newCurrentValue)
throws HtmlException
newFieldName - Field name of the new drop-downnewCurrentValue - 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 HtmlElementout - PrintWriter to displaydepth - the number of tabs to indent
HtmlException - If the DropDown cannot be displayed
public void setCurrentValue(String newCurrentValue)
throws HtmlException
newCurrentValue - The value for this drop down
HtmlException - If the parameter is invalid
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||