PAJES 2.3.9

org.pajes.html
Class InputFile

java.lang.Object
  extended byorg.pajes.html.Tag
      extended byorg.pajes.html.Input
          extended byorg.pajes.html.InputField
              extended byorg.pajes.html.InputFile
All Implemented Interfaces:
java.lang.Cloneable, HTML, InputMandatoryValidation, InputValidation, java.io.Serializable

public class InputFile
extends InputField

This class creates an input field in a form that accepts a file from the user.

See Also:
FileUploadForm, Serialized Form

Field Summary
 
Fields inherited from class org.pajes.html.Input
TYPE_ATTRIBUTE
 
Fields inherited from class org.pajes.html.Tag
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT
 
Constructor Summary
InputFile(Form form, java.lang.String name)
          Creates a named file input field.
InputFile(Form form, java.lang.String name, int size)
          Creates a named file input field of the specified size.
InputFile(Form form, java.lang.String name, int size, int maxLength)
          Creates a named file input field of the specified size and maximum input length.
InputFile(InputField source)
          Creates a named input field.
 
Method Summary
 Input setOnChangeHandler(java.lang.String onChangeHandler)
          Sets the JavaScript handler for this event.
 Tag setOnClickHandler(java.lang.String onClickHandler)
          Sets the JavaScript handler for this event.
 
Methods inherited from class org.pajes.html.InputField
getClientValidation, getMaxLength, getSize, isMandatory, setMandatory, setMandatory, setMandatory, setMaxLength, setMaxLength, setSize, setSize
 
Methods inherited from class org.pajes.html.Input
addClientValidation, addContent, clone, getClientValidation, getDOMReference, getFieldNameForErrorMessage, getForm, getInstance, getLabel, getName, getOnBlurHandler, getOnChangeHandler, getOnFocusHandler, getOnSelectHandler, getReadOnlyStyleSheetClass, getTabIndex, getType, getValue, isChangeFlagEnabled, isDisabled, isReadOnly, isRequiringValidation, logNoFormWarning, removeClientValidation, removeClientValidation, removeClientValidation, removeMandatoryClientValidation, setChanged, setChangedFlag, setContent, setDisabled, setFieldNameInErrorMessage, setFieldNameInErrorMessage, setForm, setId, setLabel, setName, setOnBlurHandler, setOnBlurValidation, setOnFocusHandler, setOnSelectHandler, setReadOnly, setReadOnlyStyleSheetClass, setTabIndex, setTabIndex, setTabIndex, setValue, write
 
Methods inherited from class org.pajes.html.Tag
addAttribute, addAttributes, addAttributes, clearAttribute, clearAttributes, destroy, getAttribute, getAttributes, getAttributeSet, getContainer, getContent, getDocument, getId, getOnClickHandler, getOnDBLClickHandler, getOnKeyDownHandler, getOnKeyPressHandler, getOnKeyUpHandler, getOnMouseDownHandler, getOnMouseOutHandler, getOnMouseOverHandler, getOnMouseUpHandler, getStyle, getStyleSheetClass, getTagName, getTitle, getWritePermission, init, initAttributes, isWritable, isWritable, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContainer, setContent, setOnDBLClickHandler, setOnKeyDownHandler, setOnKeyPressHandler, setOnKeyUpHandler, setOnMouseDownHandler, setOnMouseOutHandler, setOnMouseOverHandler, setOnMouseUpHandler, setStyle, setStyleSheetClass, setTagName, setTitle, setWritable, setWriteAttributes, setWriteEndTag, setWritelnAfter, setWritelnAfterContent, setWritelnBefore, setWritelnBeforeContent, setWritePermission, toString, writeContent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pajes.html.InputValidation
getDOMReference, getName, isRequiringValidation, setOnBlurValidation
 

Constructor Detail

InputFile

public InputFile(InputField source)
Creates a named input field.

Parameters:
source - the input field from which this input field will be created.

InputFile

public InputFile(Form form,
                 java.lang.String name)
Creates a named file input field.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.

InputFile

public InputFile(Form form,
                 java.lang.String name,
                 int size)
Creates a named file input field of the specified size.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
size - the display size of the input field.

InputFile

public InputFile(Form form,
                 java.lang.String name,
                 int size,
                 int maxLength)
Creates a named file input field of the specified size and maximum input length.

Parameters:
form - the form on which this input field will appear. Note that the element must still be added to the form - this reference is used by the getDOMReference() method to determine the fully qualified element name.
name - the name to apply to the input object, so that it may be manipulated using client-side JavaScript.
size - the display size of the input field.
maxLength - the maximum number of characters to accept into the field.
Method Detail

setOnChangeHandler

public Input setOnChangeHandler(java.lang.String onChangeHandler)
Sets the JavaScript handler for this event.

Overrides:
setOnChangeHandler in class Input
Parameters:
onChangeHandler - The new onChangeHandler value
Returns:
the modified Input object.

setOnClickHandler

public Tag setOnClickHandler(java.lang.String onClickHandler)
Sets the JavaScript handler for this event.

Overrides:
setOnClickHandler in class Input
Parameters:
onClickHandler - The new onClickHandler value
Returns:
the modified Tag object.

PAJES 2.3.9

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