Class CmsDialogFormHandler
java.lang.Object
org.opencms.gwt.client.ui.input.form.CmsDialogFormHandler
- All Implemented Interfaces:
I_CmsFormHandler
Abstract handler superclass for forms which have their own dialog.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CmsFormDialog
The form dialog.protected I_CmsFormSubmitHandler
The form submit handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the form results are currently being submitted.void
onSubmitValidationResult
(CmsForm form, boolean ok) This method is called when the validation triggered by an attempt to submit the form has finished.void
onValidationResult
(CmsForm form, boolean ok) This method is called when the normal validation triggered by changing fields has finished.void
setDialog
(CmsFormDialog dialog) Sets the dialog.void
setSubmitHandler
(I_CmsFormSubmitHandler submitHandler) Sets the form submit handler.
-
Field Details
-
m_dialog
The form dialog. -
m_submitHandler
The form submit handler.
-
-
Constructor Details
-
CmsDialogFormHandler
public CmsDialogFormHandler()Creates a new instance.
-
-
Method Details
-
isSubmitting
Returns true if the form results are currently being submitted.- Specified by:
isSubmitting
in interfaceI_CmsFormHandler
- Returns:
- true if the form results are submitted
-
onSubmitValidationResult
Description copied from interface:I_CmsFormHandler
This method is called when the validation triggered by an attempt to submit the form has finished.- Specified by:
onSubmitValidationResult
in interfaceI_CmsFormHandler
- Parameters:
form
- the formok
- the validation result- See Also:
-
onValidationResult
Description copied from interface:I_CmsFormHandler
This method is called when the normal validation triggered by changing fields has finished.- Specified by:
onValidationResult
in interfaceI_CmsFormHandler
- Parameters:
form
- the formok
- the validation result- See Also:
-
setDialog
Sets the dialog.- Parameters:
dialog
- the form dialog
-
setSubmitHandler
Sets the form submit handler.- Parameters:
submitHandler
- the new form submit handler
-