com.jcorporate.expresso.services.html
Class FileInput
java.lang.Object
com.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.FileInput
- public class FileInput
- extends HtmlElement
A field on an HTML form that allows uploading of a file
- Version:
- $Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $
- Author:
- Shash Chatterjee
|
Constructor Summary |
FileInput()
Constructor |
FileInput(String newFieldName,
String newFieldValue)
Constructor
Create a hidden field with the given name and value |
|
Method Summary |
protected void |
display(PrintWriter out,
int depth)
"Display" the file input field to a form |
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
fieldName
protected String fieldName
fieldValue
protected String fieldValue
FileInput
public FileInput()
throws HtmlException
- Constructor
- Throws:
HtmlException - If the superclass constructor fails
FileInput
public FileInput(String newFieldName,
String newFieldValue)
throws HtmlException
- Constructor
Create a hidden field with the given name and value
- Parameters:
newFieldName - Field name for the hidden fieldnewFieldValue - Value for the hidden field
- Throws:
HtmlException - If the parameters are invalid
display
protected void display(PrintWriter out,
int depth)
throws HtmlException
- "Display" the file input field to a form
- Specified by:
display in class HtmlElement
- Parameters:
depth - the number of tabs to indentout - PrintWriter to display
- Throws:
HtmlException - If the field could not be displayed
Please see www.jcorporate.com for information about new Expresso releases.