public interface XHTMLFormEventHandler<T extends DMSForm>
Modifier and Type | Method and Description |
---|---|
default void |
afterDelete(T f)
This method is called after the form has been deleted from
the store.
|
default void |
afterInsert(T f)
This method is called after the form has been inserted into
the store.
|
default void |
afterUpdate(T f)
This method is called after the form has been updated in
the store.
|
default void |
beforeDelete(T f)
This method is called before the form is deleted.
|
default void |
beforeInsert(T f)
This method is called before the form is inserted into
the store.
|
default void |
beforeShow(T f,
FormContext ctx,
HttpServletRequest req)
This method will be called before the page for the passed form is build.
|
default void |
beforeUpdate(T f)
This method is called before the form is updated in the
store (the existing form in the store will be overwritten with the
values of this form).
|
default OrgUnit |
getDefaultOrgUnit(T f)
Return the org.unit the form belongs to.
|
default String[][] |
getKeys(T f)
A class may return key field groups in order to identify already existing objects
of that class.
|
default String |
getName(T f)
Returns the name of this form.
|
default void |
modifyModel(T f,
Element formElement,
FormContext ctx)
Callback for modifying the model element.
|
default void |
onShow(T f,
FormContext ctx,
XHTMLPage p,
HttpServletRequest req)
This method is called before the form is sent to the browser.
|
default void beforeInsert(T f) throws Exception
f
- the form to insertException
default void beforeUpdate(T f) throws Exception
f
- the form to updateException
default void beforeDelete(T f) throws Exception
f
- the form to deleteException
default void afterInsert(T f) throws Exception
f
- the inserted formException
default void afterUpdate(T f) throws Exception
f
- the updated formException
default void afterDelete(T f) throws Exception
f
- the deleted formException
default void beforeShow(T 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 pageException
default void onShow(T 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 pageException
default String getName(T f) throws Exception
f
- the form which name is wantedException
default OrgUnit getDefaultOrgUnit(T f)
default String[][] getKeys(T f)
The first key field group is occasionally treated in a special manner as the primary business key. E.g. the export import functionality checks for object existence according to just the first key field group.
{{"name", "birthdate"},{"ssn"}}
for a
class defining two key field groups. The first one contains the fields name
and
birthdate
, the second key field group has just one field ssn
.
Default returns empty structure.default void modifyModel(T f, Element formElement, FormContext ctx)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.