org.opencms.frontend.templateone.form
Class CmsPrivacyField

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

public class CmsPrivacyField
extends CmsCheckboxField

Represents a check box with a link.


Constructor Summary
CmsPrivacyField()
           
 
Method Summary
 java.lang.String buildHtml(CmsFormHandler formHandler, org.opencms.i18n.CmsMessages messages, java.lang.String errorKey)
          Builds the HTML input element for this element to be used in a frontend JSP.
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.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
 

Constructor Detail

CmsPrivacyField

public CmsPrivacyField()
Method Detail

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

buildHtml

public java.lang.String buildHtml(CmsFormHandler formHandler,
                                  org.opencms.i18n.CmsMessages messages,
                                  java.lang.String errorKey)
Description copied from interface: I_CmsField
Builds the HTML input element for this element to be used in a frontend JSP.

Specified by:
buildHtml in interface I_CmsField
Overrides:
buildHtml in class CmsCheckboxField
Parameters:
formHandler - the handler of the current form
messages - a resource bundle containing HTML snippets to build the HTML element
errorKey - the key of the current error message
Returns:
the HTML input element for this element to be used in a frontend JSP
See Also:
I_CmsField.buildHtml(CmsFormHandler, org.opencms.i18n.CmsMessages, String)

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 CmsCheckboxField
Returns:
the type of the input field
See Also:
I_CmsField.getType()