org.opencms.frontend.templateone.form
Class CmsEmailField

java.lang.Object
  extended by org.opencms.frontend.templateone.form.A_CmsField
      extended by org.opencms.frontend.templateone.form.CmsTextField
          extended by org.opencms.frontend.templateone.form.CmsEmailField
All Implemented Interfaces:
I_CmsField

public class CmsEmailField
extends CmsTextField

Represents a text input field for an email address.


Field Summary
static java.lang.String VALIDATION_REGEX
          Regular expression to validate email addresses.
 
Constructor Summary
CmsEmailField()
           
 
Method Summary
static java.lang.String getStaticType()
          Returns the type of the input field, e.g.
 java.lang.String getType()
          Returns the type of the input field, e.g.
 
Methods inherited from class org.opencms.frontend.templateone.form.CmsTextField
buildHtml
 
Methods inherited from class org.opencms.frontend.templateone.form.A_CmsField
getErrorMessage, getItems, getLabel, getName, getPlaceholder, getPosition, getValidationExpression, getValue, incrementPlaceholder, isMandatory, needsItems, setErrorMessage, setItems, setLabel, setMandatory, setName, setPlaceholder, setPosition, setValidationExpression, setValue, showRowEnd, showRowStart, toString, validate, validateConstraints, validateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALIDATION_REGEX

public static final java.lang.String VALIDATION_REGEX
Regular expression to validate email addresses.

See Also:
Constant Field Values
Constructor Detail

CmsEmailField

public CmsEmailField()
Method Detail

getType

public java.lang.String getType()
Description copied from interface: I_CmsField
Returns the type of the input field, e.g. "text" or "select".

Specified by:
getType in interface I_CmsField
Overrides:
getType in class CmsTextField
Returns:
the type of the input field
See Also:
I_CmsField.getType()

getStaticType

public static java.lang.String getStaticType()
Returns the type of the input field, e.g. "text" or "select".

Returns:
the type of the input field