Class StyleClassValidationDecoration

  • All Implemented Interfaces:
    ValidationDecoration

    public class StyleClassValidationDecoration
    extends AbstractValidationDecoration
    Validation decorator to decorate component validation state using two CSS classes for errors and warnings. Here is example of such decoration

    Screenshot of StyleClassValidationDecoration
    • Constructor Detail

      • StyleClassValidationDecoration

        public StyleClassValidationDecoration()
        Creates a default instance of a decorator
      • StyleClassValidationDecoration

        public StyleClassValidationDecoration​(String errorClass,
                                              String warningClass)
        Creates an instance of validator using custom class names
        Parameters:
        errorClass - class name for error decoration
        warningClass - class name for warning decoration
      • StyleClassValidationDecoration

        public StyleClassValidationDecoration​(String errorClass,
                                              String warningClass,
                                              String infoClass,
                                              String okClass)
        Creates an instance of validator using custom class names
        Parameters:
        errorClass - class name for error decoration
        warningClass - class name for warning decoration
        infoClass - class name for info decoration
        okClass - class name for ok decoration