Class CmsValidationController

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection<I_CmsFormField> m_fields
      The list of form fields which should be validated.
      protected java.util.Map<java.lang.String,​org.opencms.gwt.shared.CmsValidationQuery> m_validationQueries
      A map containing all validation queries which should be executed asynchronously.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()
      Returns the id of this validation controller.
      java.util.Set<java.lang.String> getValidatedFields()
      Returns the set of fields which have been validated.
      protected void internalStartValidation()
      Starts the validation.
      protected void onReceiveValidationResults​(java.util.Map<java.lang.String,​org.opencms.gwt.shared.CmsValidationResult> results)
      Internal method which is executed when the results of the asynchronous validation are received from the server.
      void provideValidationResult​(java.lang.String field, org.opencms.gwt.shared.CmsValidationResult result)
      Reports the result of a synchronous validation.
      void setFormValidator​(java.lang.String formValidatorClass)
      Sets the form validator class name for this validation controller.
      void setFormValidatorConfig​(java.lang.String formValidatorConfig)
      Sets the form validator configuration string.
      void startValidation()
      Starts the validation.
      void validateAsync​(java.lang.String field, java.lang.String value, java.lang.String validator, java.lang.String config)
      Requests an server-side validation to be performed later.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait