PAJES 2.3.9

org.pajes.html
Class FileUploadForm

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.TraversableElement
          extended byorg.pajes.html.Container
              extended byorg.pajes.html.Form
                  extended byorg.pajes.html.FileUploadForm
All Implemented Interfaces:
java.lang.Cloneable, HTML, java.io.Serializable, 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.
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
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, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, init, 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, 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
 

Field Detail

ENCTYPE

public static final java.lang.String ENCTYPE
The "multipart/form-data" encoding type.

See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.