FormField
|
+--TextField
|
+--PickPasswordField
public class PickPasswordField
extends TextField
Field Summary | |
---|---|
mixed | The maximum length of the password permitted. |
mixed | The minimum length of the password permitted. |
mixed | |
mixed | Don't trim whitespace at the front or back of the entered password. |
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 | |
---|---|
PickPasswordField(string name, string label, int required) Creates a new PickPasswordField. |
|
__construct(string name, string label, int required) Creates a new PickPasswordField. |
Method Summary | |
---|---|
string | Returns the HTML used to display the input portion of this field. |
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 = 20
The maximum length of the password permitted.
public mixed $MIN_SIZE = 5
The minimum length of the password permitted.
public mixed $REGEX_PASSWORD = "/^[^ ]+\$/i"
public mixed $trimWhitespace = false
Don't trim whitespace at the front or back of the entered password.
public PickPasswordField(string name, string label, int required)
Creates a new PickPasswordField.
public string getEditableFieldTag()
Returns the HTML used to display the input portion of this field.
public boolean isValid()
Checks for field errors detected by this field, including a check for blank. Ensures that the value is comprised of letters, digits, underscores and at signs. If an error is detected, the setError() method is called to set the appropriate error message.
PickPasswordField is a password field. Note: this field doesn't trim the whitespace at the front or back of the entered password. Valid passwords are comprised of only letters, digits, '_' and '@'.