Class ImageFieldDisplayer
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer<FileField>
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
-
- org.silverpeas.core.contribution.content.form.displayers.ImageFieldDisplayer
-
- All Implemented Interfaces:
FieldDisplayer<FileField>
public class ImageFieldDisplayer extends AbstractFileFieldDisplayer
A ImageFieldDisplayer is an object which can display an image in HTML and can retrieve via HTTP any file.- See Also:
Field
,FieldTemplate
,Form
,FieldDisplayer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
AbstractFileFieldDisplayer.Operation
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
OPERATION_KEY
-
-
Constructor Summary
Constructors Constructor Description ImageFieldDisplayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
display(PrintWriter out, FileField field, FieldTemplate template, PagesContext pageContext)
Prints the HTML value of the field.int
getNbHtmlObjectsDisplayed(FieldTemplate template, PagesContext pagesContext)
Method declaration-
Methods inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
checkFieldType, createSimpleDocument, deleteAttachment, displayScripts, getManagedTypes, isDeletion, isDisplayedMandatory, isUpdate, processInput, processUploadedFile, update, update
-
Methods inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer
getDefaultValue, index
-
-
-
-
Method Detail
-
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.
- Throws:
FormException
-
getNbHtmlObjectsDisplayed
public int getNbHtmlObjectsDisplayed(FieldTemplate template, PagesContext pagesContext)
Method declaration- Returns:
- the number of HTML Objects displayed by the displayer.
-
-