|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Input
org.pajes.html.InputField
This class is the base class for all the form input elements that have a text box for entry.
| 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 |
InputField(InputField source)
Creates an input field from another input field. |
protected |
InputField(java.lang.String type)
Creates an input field. |
protected |
InputField(java.lang.String type,
Form form,
java.lang.String name)
Creates an input field. |
| Method Summary | |
java.lang.String |
getClientValidation(Browser browser)
Returns the client validation rules applicable to this input element as a string. |
java.lang.Integer |
getMaxLength()
Retrieves the maximum number of characters that are allowed in the input box. |
java.lang.Integer |
getSize()
Retrieves the width of the input box. |
boolean |
isMandatory()
Determines if this field is mandatory or not. |
Input |
setMandatory(boolean valueIsRequired)
Sets validation to ensure the user enters a value in this field. |
InputField |
setMandatory(boolean valueIsRequired,
java.lang.String fieldName)
Sets validation to ensure the user enters a value in this field. |
InputField |
setMandatory(boolean valueIsRequired,
java.lang.String fieldName,
Input[] dependantFields)
Sets validation to ensure the user enters a value in this field. |
InputField |
setMaxLength(int characters)
Sets the maximum number of characters that are allowed in the input box. |
InputField |
setMaxLength(java.lang.Integer characters)
Sets the maximum number of characters that are allowed in the input box. |
InputField |
setSize(int size)
Sets the width of the input box. |
InputField |
setSize(java.lang.Integer size)
Sets the width of the input box. |
| 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 |
protected InputField(java.lang.String type)
type - the type attribute of the <input> tag.
protected InputField(java.lang.String type,
Form form,
java.lang.String name)
type - the type attribute of the <input> tag.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.protected InputField(InputField source)
source - the input field from which this input field will be
created.| Method Detail |
public java.lang.String getClientValidation(Browser browser)
InputValidation
getClientValidation in interface InputValidationgetClientValidation in class Inputbrowser - the browser to which the output is being sent.
Input.getClientValidation(org.pajes.servlet.Browser)public Input setMandatory(boolean valueIsRequired)
setMandatory in interface InputMandatoryValidationvalueIsRequired - true if a value is mandatory.
public InputField setMandatory(boolean valueIsRequired,
java.lang.String fieldName)
valueIsRequired - true if a value is mandatory.fieldName - is the name of the field to display in the error
message.
public InputField setMandatory(boolean valueIsRequired,
java.lang.String fieldName,
Input[] dependantFields)
valueIsRequired - true if a value is mandatory.fieldName - is the name of the field to display in the error
message.dependantFields - is an array of element names whose values must be
provided before this element is considered mandatory. If ANY of
the dependantElements specified has a value, the mandatory check
will be carried out on this element.
public boolean isMandatory()
isMandatory in interface InputMandatoryValidationpublic InputField setMaxLength(int characters)
characters - the maximum number of characters.
public InputField setMaxLength(java.lang.Integer characters)
characters - the maximum number of characters.
public java.lang.Integer getMaxLength()
public InputField setSize(int size)
size - the width of the the input box.
public InputField setSize(java.lang.Integer size)
size - the width of the the input box.
public java.lang.Integer getSize()
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||