public class XHTMLFormEventAdapter extends java.lang.Object implements XHTMLFormEventHandler
Constructor and Description |
---|
XHTMLFormEventAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterDelete(DMSForm f)
This method is called after the form has been deleted from
the store.
|
void |
afterInsert(DMSForm f)
This method is called after the form has been inserted into
the store.
|
void |
afterUpdate(DMSForm f)
This method is called after the form has been updated in
the store.
|
void |
beforeDelete(DMSForm f)
This method is called before the form is deleted.
|
void |
beforeInsert(DMSForm f)
This method is called before the form is inserted into
the store.
|
void |
beforeShow(DMSForm f,
FormContext ctx,
javax.servlet.http.HttpServletRequest req)
This method will be called before the page for the passed form is build.
|
void |
beforeUpdate(DMSForm 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).
|
OrgUnit |
getDefaultOrgUnit(DMSForm f)
Return the org.unit the form belongs to.
|
java.lang.String[][] |
getKeys(DMSForm f)
A class has may return key field groups in order to identify already existing objects
of that class.
|
java.lang.String |
getName(DMSForm f)
Returns the name of this form.
|
java.util.List<java.lang.String> |
modifyIconClass(DMSForm f,
java.util.List<java.lang.String> cssClasses) |
void |
modifyModel(DMSForm f,
Element formElement,
FormContext ctx)
Callback for modifying the model element.
|
void |
onDelete(DMSForm f)
Deprecated.
|
void |
onInsert(DMSForm f)
Deprecated.
|
void |
onShow(DMSForm f,
FormContext ctx,
XHTMLPage p,
javax.servlet.http.HttpServletRequest req)
This method is called before the form is sent to the browser.
|
void |
onUpdate(DMSForm f)
Deprecated.
|
public void beforeInsert(DMSForm f) throws java.lang.Exception
beforeInsert
in interface XHTMLFormEventHandler
f
- the form to insertjava.lang.Exception
public void beforeUpdate(DMSForm f) throws java.lang.Exception
beforeUpdate
in interface XHTMLFormEventHandler
f
- the form to updatejava.lang.Exception
public void beforeDelete(DMSForm f) throws java.lang.Exception
beforeDelete
in interface XHTMLFormEventHandler
f
- the form to deletejava.lang.Exception
public void afterInsert(DMSForm f) throws java.lang.Exception
afterInsert
in interface XHTMLFormEventHandler
f
- the inserted formjava.lang.Exception
public void afterUpdate(DMSForm f) throws java.lang.Exception
afterUpdate
in interface XHTMLFormEventHandler
f
- the updated formjava.lang.Exception
public void afterDelete(DMSForm f) throws java.lang.Exception
afterDelete
in interface XHTMLFormEventHandler
f
- the deleted formjava.lang.Exception
@Deprecated public void onInsert(DMSForm f) throws java.lang.Exception
java.lang.Exception
@Deprecated public void onUpdate(DMSForm f) throws java.lang.Exception
java.lang.Exception
@Deprecated public void onDelete(DMSForm f) throws java.lang.Exception
java.lang.Exception
public void beforeShow(DMSForm f, FormContext ctx, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
beforeShow
in interface XHTMLFormEventHandler
beforeShow
in interface com.groiss.storegui.ObjectFormHandler<DMSForm>
f
- the form to showctx
- holds context information for the formreq
- the http request requesting the form's pagejava.lang.Exception
public void onShow(DMSForm f, FormContext ctx, XHTMLPage p, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
onShow
in interface XHTMLFormEventHandler
onShow
in interface com.groiss.storegui.ObjectFormHandler<DMSForm>
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 pagejava.lang.Exception
public java.lang.String getName(DMSForm f) throws java.lang.Exception
getName
in interface XHTMLFormEventHandler
f
- the form which name is wantedjava.lang.Exception
public java.util.List<java.lang.String> modifyIconClass(DMSForm f, java.util.List<java.lang.String> cssClasses)
public OrgUnit getDefaultOrgUnit(DMSForm f)
getDefaultOrgUnit
in interface XHTMLFormEventHandler
public java.lang.String[][] getKeys(DMSForm 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.
getKeys
in interface XHTMLFormEventHandler
{{"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
.public void modifyModel(DMSForm f, Element formElement, FormContext ctx)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.