FormField
|
+--TextField
|
+--PersonNameField
public class PersonNameField
extends TextField
Field Summary | |
---|---|
mixed | The maximum length permitted. |
mixed | A regular expression used to represent a person's name. |
Fields inherited from FORMfields.fields.TextField | |
---|---|
maxLength, minLength, size |
Fields inherited from FORMfields.fields.FormField | |
---|---|
autoPropagate, data, disableEnterHandler, displayValuesOnNewLine, editable, enabled, endingString, enterTabHandler, enterTabs, error, extraHtml, fieldBelowLabel, formError, help, hidden, htmlify, id, isData, label, labelForId, multiValues, name, required, subFieldDisplayValueSeparator, subFieldSeparator, subFieldValueSeparator, subFields, subFieldsCannotBeEmpty, trimWhitespace, validators, value, valueIsHtml |
Constructor Summary | |
---|---|
PersonNameField(string name, string label, int required) Creates a new PersonNameField. |
|
__construct(string name, string label, int required) Creates a new PersonNameField. |
Method Summary | |
---|---|
boolean | isValid() Checks for field errors detected by this field, including a check for blank. |
Methods inherited from FORMfields.fields.TextField | |
---|---|
getEditableFieldTag, isValid |
public mixed $MAX_SIZE = 40
The maximum length permitted.
public mixed $REGEX_PERSON_NAME = "/^(-| |\\.|_|'|[0-9]|[a-z])+\$/i"
A regular expression used to represent a person's name.
public PersonNameField(string name, string label, int required)
Creates a new PersonNameField.
public boolean isValid()
Checks for field errors detected by this field, including a check for blank. This method ensures that the value is comprised of only appropriate characters typically used in a person's name. If an error is detected, the setError() method is called to set the appropriate error message.
PersonNameField is a field for editing a person's name.