Expresso 5-6

com.jcorporate.expresso.services.html
Class FileInput

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.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

Field Summary
protected  String fieldName
           
protected  String fieldValue
           
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

protected String fieldName

fieldValue

protected String fieldValue
Constructor Detail

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 field
newFieldValue - Value for the hidden field
Throws:
HtmlException - If the parameters are invalid
Method Detail

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 indent
out - PrintWriter to display
Throws:
HtmlException - If the field could not be displayed

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.