|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.dms.FormEventAdapter
public class FormEventAdapter
The adapter which receives form events. The methods in this class are empty; this class is provided as a convenience for easily creating handlers by extending this class and overriding only the methods of interest.
| Constructor Summary | |
|---|---|
FormEventAdapter()
|
|
| 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,
ActivityInstance ai,
HTMLPage 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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormEventAdapter()
| Method Detail |
|---|
public void onInsert(DMSForm f)
throws Exception
onInsert in interface FormEventHandlerf - the form to insert
Exception
public void onUpdate(DMSForm f)
throws Exception
onUpdate in interface FormEventHandlerf - the form to update
Exception
public void onDelete(DMSForm f)
throws Exception
onDelete in interface FormEventHandlerf - the form to delete
Exception
public void beforeShow(DMSForm f,
FormContext ctx,
HttpServletRequest req)
throws Exception
beforeShow in interface FormEventHandler2f - the form to showctx - holds context information for the formreq - the http request requesting the form's page
Exception
public void onShow(DMSForm f,
ActivityInstance ai,
HTMLPage p,
HttpServletRequest req)
throws Exception
onShow in interface FormEventHandlerf - the form to showai - the actual activity instance (in case of process forms)p - the html page which will be sent to the browserreq - the http request requesting the form's page
Exception
public String getName(DMSForm f)
throws Exception
getName in interface FormEventHandlerf - the form which name is wanted
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||