com.silverpeas.form.displayers
Class EmailFieldDisplayer

java.lang.Object
  extended by com.silverpeas.form.displayers.AbstractFieldDisplayer<TextField>
      extended by com.silverpeas.form.displayers.AbstractTextFieldDisplayer<TextField>
          extended by com.silverpeas.form.displayers.EmailFieldDisplayer
All Implemented Interfaces:
FieldDisplayer<TextField>

public class EmailFieldDisplayer
extends AbstractTextFieldDisplayer<TextField>

A TextFieldDisplayer is an object which can display a TextFiel in HTML the content of a TextFiel to a end user and can retrieve via HTTP any updated value.

See Also:
Field, FieldTemplate, Form, FieldDisplayer

Field Summary
static String PARAM_MAILTO
           
static String PARAM_SIZE
           
 
Constructor Summary
EmailFieldDisplayer()
           
 
Method Summary
 void addSpecificScript(PrintWriter out, FieldTemplate template, PagesContext pageContext)
           
 void display(PrintWriter out, TextField field, FieldTemplate template, PagesContext pageContext)
          Prints the HTML value of the field.
 
Methods inherited from class com.silverpeas.form.displayers.AbstractTextFieldDisplayer
addMandatoryScript, displayScripts, getManagedTypes, getNbHtmlObjectsDisplayed, isDisplayedMandatory, update
 
Methods inherited from class com.silverpeas.form.displayers.AbstractFieldDisplayer
index, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_MAILTO

public static final String PARAM_MAILTO
See Also:
Constant Field Values

PARAM_SIZE

public static final String PARAM_SIZE
See Also:
Constant Field Values
Constructor Detail

EmailFieldDisplayer

public EmailFieldDisplayer()
Method Detail

addSpecificScript

public void addSpecificScript(PrintWriter out,
                              FieldTemplate template,
                              PagesContext pageContext)
Overrides:
addSpecificScript in class AbstractTextFieldDisplayer<TextField>

display

public void display(PrintWriter out,
                    TextField field,
                    FieldTemplate template,
                    PagesContext pageContext)
             throws FormException
Prints the HTML value of the field. The displayed value must be updatable by the end user. The value format may be adapted to a local language. The fieldName must be used to name the html form input. Never throws an Exception but log a silvertrace and writes an empty string when :

Throws:
FormException


Copyright © 2016 Silverpeas. All Rights Reserved.