| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement com.jcorporate.expresso.services.html.DropDown
DropDown | public class DropDown extends HtmlElement (Code) | | Encapsulates an HTML drop-down box on an HTML form
author: Michael P. Nash version: $Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $ |
DropDown | public DropDown(String newFieldName) throws HtmlException(Code) | | Constructor Create a new DropDown 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 |
DropDown | public DropDown(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 drop-down 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 drop-down
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 DropDown to the appropriate PrintWriter
Parameters: out - PrintWriter to display Parameters: depth - the number of tabs to indent throws: HtmlException - If the DropDown cannot be displayed |
setCurrentValue | public void setCurrentValue(String newCurrentValue) throws HtmlException(Code) | | Set the currently selected value for this drop-down
Parameters: newCurrentValue - The value for this drop down throws: HtmlException - If the parameter is invalid |
|
|