com.silverpeas.form.displayers
Class FileFieldDisplayer
java.lang.Object
com.silverpeas.form.displayers.AbstractFieldDisplayer<FileField>
com.silverpeas.form.displayers.AbstractFileFieldDisplayer
com.silverpeas.form.displayers.FileFieldDisplayer
- All Implemented Interfaces:
- FieldDisplayer<FileField>
public class FileFieldDisplayer
- extends AbstractFileFieldDisplayer
A FileFieldDisplayer is an object which can display a link to a file (attachment) in HTML and can
retrieve via HTTP any file.
- See Also:
Field
,
FieldTemplate
,
Form
,
FieldDisplayer
Methods inherited from class com.silverpeas.form.displayers.AbstractFileFieldDisplayer |
checkFieldType, createSimpleDocument, deleteAttachment, displayScripts, getManagedTypes, isDeletion, isDisplayedMandatory, isUpdate, processInput, processUploadedFile, update, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileFieldDisplayer
public FileFieldDisplayer()
display
public void display(PrintWriter out,
FileField 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.
- Parameters:
out
- field
- template
- pageContext
-
- Throws:
FormException
getNbHtmlObjectsDisplayed
public int getNbHtmlObjectsDisplayed(FieldTemplate template,
PagesContext pagesContext)
- Method declaration
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.