com.silverpeas.form.displayers
Class AbstractFieldDisplayer<T extends Field>

java.lang.Object
  extended by com.silverpeas.form.displayers.AbstractFieldDisplayer<T>
Type Parameters:
T -
All Implemented Interfaces:
FieldDisplayer<T>
Direct Known Subclasses:
AbstractFileFieldDisplayer, AbstractTextFieldDisplayer, AccessPathFieldDisplayer, CheckBoxDisplayer, DateFieldDisplayer, ExplorerFieldDisplayer, GroupFieldDisplayer, JdbcFieldDisplayer, JdbcRefFieldDisplayer, LdapFieldDisplayer, ListBoxFieldDisplayer, MultipleUserFieldDisplayer, PdcFieldDisplayer, PdcPositionsFieldDisplayer, PdcUserFieldDisplayer, RadioButtonDisplayer, SequenceFieldDisplayer, TextDisplayer, TimeFieldDisplayer, UniqueIdFieldDisplayer, UserFieldDisplayer, WysiwygFCKFieldDisplayer

public abstract class AbstractFieldDisplayer<T extends Field>
extends Object
implements FieldDisplayer<T>

Author:
ehugonnet

Constructor Summary
AbstractFieldDisplayer()
           
 
Method Summary
 void index(FullIndexEntry indexEntry, String key, String fieldName, T field, String language, boolean stored)
          Add the content of the field to the index entry
 List<String> update(List<org.apache.commons.fileupload.FileItem> items, T field, FieldTemplate template, PagesContext pageContext)
          Updates the value of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.silverpeas.form.FieldDisplayer
display, displayScripts, getNbHtmlObjectsDisplayed, isDisplayedMandatory, update
 

Constructor Detail

AbstractFieldDisplayer

public AbstractFieldDisplayer()
Method Detail

update

public List<String> update(List<org.apache.commons.fileupload.FileItem> items,
                           T field,
                           FieldTemplate template,
                           PagesContext pageContext)
                    throws FormException
Description copied from interface: FieldDisplayer
Updates the value of the field. The fieldName must be used to retrieve the HTTP parameter from the request. @throw FormException if the field type is not a managed type. @throw FormException if the field doesn't accept the new value.

Specified by:
update in interface FieldDisplayer<T extends Field>
Returns:
Throws:
FormException

index

public void index(FullIndexEntry indexEntry,
                  String key,
                  String fieldName,
                  T field,
                  String language,
                  boolean stored)
Description copied from interface: FieldDisplayer
Add the content of the field to the index entry

Specified by:
index in interface FieldDisplayer<T extends Field>


Copyright © 2016 Silverpeas. All Rights Reserved.