|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XHTMLFormEventHandler
This interface is used for writing callback classes enhancing
the functionality of forms. The methods onInsert, onUpdate, and onDelete are
called before the database operation is performed.
Additional information can be taken from the ThreadContext. If the database
operation is done in the context of a HTTP interaction, the ThreadContext contains
the HTTP-request with the following parameters:
| Method Summary | |
|---|---|
void |
beforeShow(DMSForm f,
FormContext ctx,
HttpServletRequest req)
This method will be called before the page for the passed form is build. |
String |
getName(DMSForm f)
Returns the name of this form. |
void |
onDelete(DMSForm f)
This method is called before the form is deleted. |
void |
onInsert(DMSForm f)
This method is called before the form is inserted in the store. |
void |
onShow(DMSForm f,
FormContext ctx,
XHTMLPage p,
HttpServletRequest req)
This method is called before the form is sent to the browser. |
void |
onUpdate(DMSForm f)
This method is called before the form is updated to the store (the existing form in the store will be overwritten with the values of this form). |
| Method Detail |
|---|
void onInsert(DMSForm f)
throws Exception
f - the form to insert
Exception
void onUpdate(DMSForm f)
throws Exception
f - the form to update
Exception
void onDelete(DMSForm f)
throws Exception
f - the form to delete
Exception
void beforeShow(DMSForm f,
FormContext ctx,
HttpServletRequest req)
throws Exception
f - the form to showctx - holds context information for the formreq - the http request requesting the form's page
Exception
void onShow(DMSForm f,
FormContext ctx,
XHTMLPage p,
HttpServletRequest req)
throws Exception
f - the form to showctx - holds context information for the formp - the xhtml page which will be sent to the browserreq - the http request requesting the form's page
Exception
String getName(DMSForm f)
throws Exception
f - the form which name is wanted
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||