|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Form
A Form is an object which can display in HTML the content of a DataRecord to a end user and can retrieve via HTTP any updated values.
DataRecord
,
RecordTemplate
,
FieldDisplayer
Method Summary | |
---|---|
void |
display(javax.servlet.jsp.JspWriter out,
PagesContext pagesContext)
|
void |
display(javax.servlet.jsp.JspWriter out,
PagesContext pagesContext,
DataRecord record)
Prints the HTML layout of the dataRecord using the RecordTemplate to extract labels and extra informations. |
void |
displayScripts(javax.servlet.jsp.JspWriter out,
PagesContext pagesContext)
Prints the javascripts which will be used to control the new values given to the data record fields. |
String |
getTitle()
Get the form title |
boolean |
isEmpty(List<org.apache.commons.fileupload.FileItem> items,
DataRecord record,
PagesContext pagesContext)
|
void |
setData(DataRecord data)
|
void |
setFormName(String name)
|
void |
setViewForm(boolean viewForm)
Defines if this form is a 'view' form (opposite to an 'update' form) A 'view' form may have some specific behaviors like to not display empty fields |
String |
toString(PagesContext pagesContext,
DataRecord record)
|
List<String> |
update(List<org.apache.commons.fileupload.FileItem> items,
DataRecord record,
PagesContext pagesContext)
Updates the values of the dataRecord using the RecordTemplate to extra control information (readOnly or mandatory status). |
List<String> |
update(List<org.apache.commons.fileupload.FileItem> items,
DataRecord record,
PagesContext pagesContext,
boolean updateWysiwyg)
Updates the values of the dataRecord using the RecordTemplate to extra control information (readOnly or mandatory status). |
List<String> |
updateWysiwyg(List<org.apache.commons.fileupload.FileItem> items,
DataRecord record,
PagesContext pagesContext)
Updates the values of the dataRecord using the RecordTemplate to extra control information (readOnly or mandatory status). |
Method Detail |
---|
void displayScripts(javax.servlet.jsp.JspWriter out, PagesContext pagesContext)
void display(javax.servlet.jsp.JspWriter out, PagesContext pagesContext, DataRecord record) throws FormException
FormException
void display(javax.servlet.jsp.JspWriter out, PagesContext pagesContext) throws FormException
FormException
List<String> updateWysiwyg(List<org.apache.commons.fileupload.FileItem> items, DataRecord record, PagesContext pagesContext) throws FormException
FormException
List<String> update(List<org.apache.commons.fileupload.FileItem> items, DataRecord record, PagesContext pagesContext) throws FormException
FormException
List<String> update(List<org.apache.commons.fileupload.FileItem> items, DataRecord record, PagesContext pagesContext, boolean updateWysiwyg) throws FormException
FormException
String getTitle()
String toString(PagesContext pagesContext, DataRecord record)
boolean isEmpty(List<org.apache.commons.fileupload.FileItem> items, DataRecord record, PagesContext pagesContext)
void setFormName(String name)
void setData(DataRecord data)
void setViewForm(boolean viewForm)
viewForm
- true if this form is a 'view' form
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |