Class EmailFieldDisplayer
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer<TextField>
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractTextFieldDisplayer
-
- org.silverpeas.core.contribution.content.form.displayers.EmailFieldDisplayer
-
- All Implemented Interfaces:
FieldDisplayer<TextField>
public class EmailFieldDisplayer extends AbstractTextFieldDisplayer
A TextFieldDisplayer is an object which can display a TextField in HTML the content of a TextField to a end user and can retrieve via HTTP any updated value.- See Also:
Field
,FieldTemplate
,Form
,FieldDisplayer
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_MAILTO
static String
PARAM_SIZE
-
Constructor Summary
Constructors Constructor Description EmailFieldDisplayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.silverpeas.core.contribution.content.form.displayers.AbstractTextFieldDisplayer
displayScripts, getManagedTypes, getNbHtmlObjectsDisplayed, isDisplayedMandatory, update
-
Methods inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer
getDefaultValue, index, update
-
-
-
-
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
-
-
Method Detail
-
addSpecificScript
public void addSpecificScript(PrintWriter out, FieldTemplate template, PagesContext pageContext)
- Overrides:
addSpecificScript
in classAbstractTextFieldDisplayer
-
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 :- the field type is not a managed type.
- Throws:
FormException
-
-