|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of field.public interface FieldDisplayer<T extends Field>
A FieldDisplayer is an object which can display in HTML the content of a field to a end user and can retrieve via HTTP any updated value. A FieldDisplayer can only manage fields of a specific type. The links between Fields and FieldDisplayers are managed by a FormField. FieldDisplayers are grouped in Form in order to display each fields of a DataRecord.
Field
,
Form
Method Summary | |
---|---|
void |
display(PrintWriter out,
T field,
FieldTemplate template,
PagesContext pagesContext)
Prints the HTML value of the field. |
void |
displayScripts(PrintWriter out,
FieldTemplate template,
PagesContext pagesContext)
Prints the javascripts which will be used to control the new value given to the named field. |
int |
getNbHtmlObjectsDisplayed(FieldTemplate template,
PagesContext pagesContext)
Return the number of HTML Objects displayed by the displayer. |
void |
index(FullIndexEntry indexEntry,
String key,
String fieldName,
T field,
String language,
boolean stored)
Add the content of the field to the index entry |
boolean |
isDisplayedMandatory()
|
List<String> |
update(List<org.apache.commons.fileupload.FileItem> items,
T field,
FieldTemplate template,
PagesContext pagesContext)
Updates the value of the field. |
List<String> |
update(String value,
T field,
FieldTemplate template,
PagesContext pagesContext)
Updates the value of the field. |
Method Detail |
---|
void displayScripts(PrintWriter out, FieldTemplate template, PagesContext pagesContext) throws IOException
out
- template
- pagesContext
-
IOException
void display(PrintWriter out, T field, FieldTemplate template, PagesContext pagesContext) throws FormException
out
- field
- template
- pagesContext
-
FormException
List<String> update(List<org.apache.commons.fileupload.FileItem> items, T field, FieldTemplate template, PagesContext pagesContext) throws FormException
items
- field
- template
- pagesContext
-
FormException
List<String> update(String value, T field, FieldTemplate template, PagesContext pagesContext) throws FormException
value
- field
- template
- pagesContext
-
FormException
boolean isDisplayedMandatory()
int getNbHtmlObjectsDisplayed(FieldTemplate template, PagesContext pagesContext)
template
- pagesContext
-
void index(FullIndexEntry indexEntry, String key, String fieldName, T field, String language, boolean stored)
indexEntry
- key
- fieldName
- field
- language
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |