Class CmsDialogFormHandler
- java.lang.Object
-
- org.opencms.gwt.client.ui.input.form.CmsDialogFormHandler
-
- All Implemented Interfaces:
I_CmsFormHandler
public class CmsDialogFormHandler extends java.lang.Object implements I_CmsFormHandler
Abstract handler superclass for forms which have their own dialog.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsFormDialog
m_dialog
The form dialog.protected I_CmsFormSubmitHandler
m_submitHandler
The form submit handler.
-
Constructor Summary
Constructors Constructor Description CmsDialogFormHandler()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSubmitting()
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 Detail
-
m_dialog
protected CmsFormDialog m_dialog
The form dialog.
-
m_submitHandler
protected I_CmsFormSubmitHandler m_submitHandler
The form submit handler.
-
-
Constructor Detail
-
CmsDialogFormHandler
public CmsDialogFormHandler()
Creates a new instance.
-
-
Method Detail
-
isSubmitting
public boolean 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
public void onSubmitValidationResult(CmsForm form, boolean ok)
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:
I_CmsFormHandler.onSubmitValidationResult(org.opencms.gwt.client.ui.input.form.CmsForm, boolean)
-
onValidationResult
public void onValidationResult(CmsForm form, boolean ok)
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:
I_CmsFormHandler.onValidationResult(org.opencms.gwt.client.ui.input.form.CmsForm, boolean)
-
setDialog
public void setDialog(CmsFormDialog dialog)
Sets the dialog.- Parameters:
dialog
- the form dialog
-
setSubmitHandler
public void setSubmitHandler(I_CmsFormSubmitHandler submitHandler)
Sets the form submit handler.- Parameters:
submitHandler
- the new form submit handler
-
-