com.silverpeas.form.displayers
Class ImageFieldDisplayer

java.lang.Object
  extended by com.silverpeas.form.displayers.AbstractFieldDisplayer<FileField>
      extended by com.silverpeas.form.displayers.AbstractFileFieldDisplayer
          extended by com.silverpeas.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 com.silverpeas.form.displayers.AbstractFileFieldDisplayer
AbstractFileFieldDisplayer.Operation
 
Field Summary
 
Fields inherited from class com.silverpeas.form.displayers.AbstractFileFieldDisplayer
OPERATION_KEY
 
Constructor Summary
ImageFieldDisplayer()
           
 
Method Summary
 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 com.silverpeas.form.displayers.AbstractFileFieldDisplayer
checkFieldType, createSimpleDocument, deleteAttachment, displayScripts, getManagedTypes, isDeletion, isDisplayedMandatory, isUpdate, processInput, processUploadedFile, update, update
 
Methods inherited from class com.silverpeas.form.displayers.AbstractFieldDisplayer
index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFieldDisplayer

public ImageFieldDisplayer()
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 :

Parameters:
out -
field -
template -
pageContext -
Throws:
FormException

getNbHtmlObjectsDisplayed

public int getNbHtmlObjectsDisplayed(FieldTemplate template,
                                     PagesContext pagesContext)
Method declaration

Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.