FormField
|
+--TextField
|
+--IntegerField
public class IntegerField
extends TextField
Field Summary | |
---|---|
mixed | A regular expression used to represent an integer. |
mixed | The maximum value permitted. |
mixed | The minimum value permitted. |
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 | |
---|---|
IntegerField(string name, string label, int required, int maxLength, int minLength, int size, mixed maxValue, mixed minValue, int the) Creates a new IntegerField. |
|
__construct(string name, string label, int required, int maxLength, int minLength, int size, mixed maxValue, mixed minValue, int the) Creates a new IntegerField. |
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 $REGEX_INTEGER = "/^(-)?([0-9])+\$/"
A regular expression used to represent an integer.
public mixed $maxValue = null
The maximum value permitted.
public mixed $minValue = null
The minimum value permitted.
public IntegerField(string name, string label, int required, int maxLength, int minLength, int size, mixed maxValue, mixed minValue, int the)
Creates a new IntegerField.
public boolean isValid()
Checks for field errors detected by this field, including a check for blank. This method ensures that the value is an integer and that it is within the min and max range. If an error is detected, the setError() method is called to set the appropriate error message.
IntegerField is a field for editing integers/whole numbers.