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