Class AbstractFieldDisplayer<T extends Field>
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
FieldDisplayer<T>
- Direct Known Subclasses:
AbstractFileFieldDisplayer
,AbstractTextFieldDisplayer
,AccessPathFieldDisplayer
,CheckBoxDisplayer
,DateFieldDisplayer
,ExplorerFieldDisplayer
,GroupFieldDisplayer
,JdbcFieldDisplayer
,LdapFieldDisplayer
,ListBoxFieldDisplayer
,MultipleUserFieldDisplayer
,PdcFieldDisplayer
,PdcPositionsFieldDisplayer
,PdcUserFieldDisplayer
,PublicationsPickerFieldDisplayer
,RadioButtonDisplayer
,SequenceFieldDisplayer
,TextDisplayer
,TimeFieldDisplayer
,UniqueIdFieldDisplayer
,UserFieldDisplayer
,WysiwygFCKFieldDisplayer
public abstract class AbstractFieldDisplayer<T extends Field> extends Object implements FieldDisplayer<T>
- Author:
- ehugonnet
-
-
Constructor Summary
Constructors Constructor Description AbstractFieldDisplayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDefaultValue(FieldTemplate template, PagesContext pageContext)
void
index(FullIndexEntry indexEntry, String key, String fieldName, T field, String language, boolean stored)
Add the content of the field to the index entryList<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 org.silverpeas.core.contribution.content.form.FieldDisplayer
display, displayScripts, getNbHtmlObjectsDisplayed, isDisplayedMandatory, update
-
-
-
-
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 interfaceFieldDisplayer<T extends Field>
- 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 interfaceFieldDisplayer<T extends Field>
-
getDefaultValue
protected String getDefaultValue(FieldTemplate template, PagesContext pageContext)
-
-