FormField
|
+--TextField
|
+--UrlField
public class UrlField
extends TextField
Field Summary | |
---|---|
mixed | The maximum length 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 | |
---|---|
UrlField(string name, string label, int required) Creates a new UrlField. |
|
__construct(string name, string label, int required) Creates a new UrlField. |
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 = 255
The maximum length permitted.
public UrlField(string name, string label, int required)
Creates a new UrlField.
public boolean isValid()
Checks for field errors detected by this field, including a check for blank. This method ensures that the value starts with a "http://" or "https://". If an error is detected, the setError() method is called to set the appropriate error message.
UrlField is a field for editing a URL (Uniform Resource Locator). The URL is required to start with either "http://" or "https://".