Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Form Handler"

(Replaced content with "The Scout documentation has been moved to https://eclipsescout.github.io/.")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{ScoutPage|cat=Concepts}}
+
The Scout documentation has been moved to https://eclipsescout.github.io/.
 
+
Form Handler specify how a {{ScoutLink|Concepts|Form|form}} should be started.
+
 
+
* implements: {{ScoutJavadoc|IFormHandler|I}}
+
* extends: {{ScoutJavadoc|AbstractFormHandler|C}}
+
 
+
== Description ==
+
{{note|TODO|Add a description}}
+
 
+
 
+
== Events ==
+
''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''.
+
 
+
* {{ScoutEvent|Load}}: Load the data into the form, typically calling a {{ScoutLink|Concepts|Process_Service|ProcessService}} (with <code>prepareCreate()</code>, <code>load()</code>...) to get the {{ScoutLink|Concepts|FormData|FormData}} and using the the <code>importFormData(FormData)</code> function on the Form.
+
* {{ScoutEvent|PostLoad}}: This event occurs right after load. This event is suitable if you want select some rows in a TableField or touch the form (to force the store mechanism).
+
* {{ScoutEvent|CheckField}}: During the validation of a form this is the first method being called. At this point it is possible to block the validation process by returning <code>false</code>.
+
* {{ScoutEvent|Validate}}: During the validation of a form, if the {{ScoutEvent|CheckField}} events (on the Form and on the FormHandler) return true, and every Field do not have any error status, this event occurs. It provides another possibility to block the validation process, knowing that every field contains a valid input (all mandatory fields are set for example). This point is suitable to compute some logic using the field inputs and considering the form as one entity.
+
* {{ScoutEvent|Store}}: Store the form content, typically calling a {{ScoutLink|Concepts|Process_Service|ProcessService}} (with <code>create()</code>, <code>store()</code>...).
+
 
+
== See Also ==
+
* {{ScoutLink|Concepts|Client_Plug-In|Client Plug-In}}
+
* {{ScoutLink|Concepts|Form|Form}}
+

Latest revision as of 04:39, 14 March 2024

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top