code: public boolean validate(boolean scrollToFirstError) {
          boolean validated = true;
  
          for (JQMFormWidget widget : widgetValidators.keySet()) {
              if (!validate(widget))
                  validated = false;
          }
  
          if (!validated && scrollToFirstError) scrollToFirstError();
          return validated;
      }
docs: Perform validation for all validators, setting error messages where appropriate.
  
  @param scrollToFirstError - if true then in case of unsuccessful validation first error widget will be scrolled into view.
  @return true if validation was successful for all validators, otherwise false.