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 CmsFormDialogThe form dialog.protected I_CmsFormSubmitHandlerThe form submit handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the form results are currently being submitted.voidonSubmitValidationResult(CmsForm form, boolean ok) This method is called when the validation triggered by an attempt to submit the form has finished.voidonValidationResult(CmsForm form, boolean ok) This method is called when the normal validation triggered by changing fields has finished.voidsetDialog(CmsFormDialog dialog) Sets the dialog.voidsetSubmitHandler(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:
isSubmittingin interfaceI_CmsFormHandler- Returns:
- true if the form results are submitted
-
onSubmitValidationResult
Description copied from interface:I_CmsFormHandlerThis method is called when the validation triggered by an attempt to submit the form has finished.- Specified by:
onSubmitValidationResultin interfaceI_CmsFormHandler- Parameters:
form- the formok- the validation result- See Also:
-
onValidationResult
Description copied from interface:I_CmsFormHandlerThis method is called when the normal validation triggered by changing fields has finished.- Specified by:
onValidationResultin 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
-