PAJES 2.3.9

org.pajes.html
Class InputFormattedString

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

public class InputFormattedString
extends InputString

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

See Also:
IsFormat, 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
protected InputFormattedString()
          Creates a new InputFormattedString object.
  InputFormattedString(Form form, java.lang.String name, java.lang.String formatMask)
          Creates a named input field with the specified format mask.
  InputFormattedString(Form form, java.lang.String name, java.lang.String formatMask, java.lang.String value)
          Creates a named input field with the specified format mask and default value.
  InputFormattedString(InputField source, java.lang.String formatMask)
          Creates a named input field.
 
Method Summary
 java.lang.String getFormat()
          Returns the validation format mask assigned to this field.
 InputFormattedString setFormat(java.lang.String formatMask)
          Sets the validation format for this field.
 Input setValue(java.lang.String value)
          Sets the value attribute of this INPUT tag.
 
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, setOnChangeHandler, setOnClickHandler, setOnFocusHandler, setOnSelectHandler, setReadOnly, setReadOnlyStyleSheetClass, setTabIndex, setTabIndex, setTabIndex, 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

InputFormattedString

public InputFormattedString(InputField source,
                            java.lang.String formatMask)
Creates a named input field.

Parameters:
source - the input field from which this input field will be created.
formatMask - a format string that complies with the requirements of IsFormat.

InputFormattedString

public InputFormattedString(Form form,
                            java.lang.String name,
                            java.lang.String formatMask)
Creates a named input field with the specified format mask.

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.
formatMask - a format string that complies with the requirements of IsFormat.

InputFormattedString

public InputFormattedString(Form form,
                            java.lang.String name,
                            java.lang.String formatMask,
                            java.lang.String value)
Creates a named input field with the specified format mask and default value.

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.
formatMask - a format string that complies with the requirements of IsFormat.
value - the default value to assign.

InputFormattedString

protected InputFormattedString()
Creates a new InputFormattedString object.

Method Detail

setFormat

public InputFormattedString setFormat(java.lang.String formatMask)
Sets the validation format for this field. The field size and maximum input length is set to the size of the specified format.

Parameters:
formatMask - a format string that complies with the requirements of IsFormat.
Returns:
the modified InputFormattedString object.

getFormat

public java.lang.String getFormat()
Returns the validation format mask assigned to this field.

Returns:
the validation format mask assigned to this field.

setValue

public Input setValue(java.lang.String value)
Sets the value attribute of this INPUT tag.

Overrides:
setValue in class Input
Parameters:
value - the value to assign.
Returns:
the modified Input object.

PAJES 2.3.9

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