org.pajes.html
Class FileUploadForm
java.lang.Object
org.pajes.html.Tag
org.pajes.html.TraversableElement
org.pajes.html.Container
org.pajes.html.Form
org.pajes.html.FileUploadForm
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, HTML, Traversable
public class FileUploadForm
- extends Form
Container class for form elements that include a file upload component.
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
ENCTYPE
The "multipart/form-data" encoding type. |
|
Constructor Summary |
FileUploadForm()
Creates an empty form. |
FileUploadForm(java.lang.String formName)
Creates a form with the specified name. |
FileUploadForm(java.lang.String formName,
java.lang.String actionURL)
Creates a form with the specified name and a specified action URL. |
FileUploadForm(java.lang.String formName,
java.lang.String actionURL,
java.lang.String targetFrame)
Creates a form with the specified name and an action URL to be directed
to a specified frame. |
|
Method Summary |
Form |
setAcceptableMimeTypes(java.lang.String mimeTypes)
Specifies one or more MIME types for allowable files to be uploaded to
the server. |
| Methods inherited from class org.pajes.html.Form |
add, clone, getActionURL, getName, getOnChangeFlagName, getValidationFunctionName, initAttributes, setActionURL, setAttribute, setFormName, setMimeType, setOnResetHandler, setOnSubmitHandler, setTargetFrame, setUseGetMethod, setUsePostMethod, writeContent |
| Methods inherited from class org.pajes.html.Container |
add, add, add, addContent, clear, delete, delete, destroy, get, getContent, getContents, getPosition, insert, replace, set, setContent, setContent, size |
| Methods inherited from class org.pajes.html.TraversableElement |
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable |
| Methods inherited from class org.pajes.html.Tag |
addAttribute, addAttributes, addAttributes, clearAttribute, clearAttributes, getAttribute, getAttributes, getAttributeSet, getContainer, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getParent, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, hasAttribute, init, isChildOf, isChildOf, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setId, setOnClickHandler, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setParent, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, write |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.HTML |
getContainer, getDocument, getId, getParent, getWritePermission, isChildOf, isChildOf, setContainer, setParent, setWritePermission, write |
ENCTYPE
public static final java.lang.String ENCTYPE
- The "multipart/form-data" encoding type.
- See Also:
- Constant Field Values
FileUploadForm
public FileUploadForm()
- Creates an empty form.
FileUploadForm
public FileUploadForm(java.lang.String formName)
- Creates a form with the specified name.
- Parameters:
formName - the name of the form.
FileUploadForm
public FileUploadForm(java.lang.String formName,
java.lang.String actionURL)
- Creates a form with the specified name and a specified action URL.
- Parameters:
formName - the name of the form.actionURL - the URL to process the form contents.
FileUploadForm
public FileUploadForm(java.lang.String formName,
java.lang.String actionURL,
java.lang.String targetFrame)
- Creates a form with the specified name and an action URL to be directed
to a specified frame.
- Parameters:
formName - the name of the form.actionURL - the URL to process the form contents.targetFrame - the name of the frame to receive the result document.
setAcceptableMimeTypes
public Form setAcceptableMimeTypes(java.lang.String mimeTypes)
- Specifies one or more MIME types for allowable files to be uploaded to
the server. For example: "text/html, image/gif"
- Parameters:
mimeTypes - the allowed MIME types to be used to set the encoding of the
form when it is submitted.
- Returns:
- the modified Form object.
Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.