Module org.controlsfx.controls
Class StyleClassValidationDecoration
- java.lang.Object
-
- org.controlsfx.validation.decoration.AbstractValidationDecoration
-
- org.controlsfx.validation.decoration.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
-
-
Constructor Summary
Constructors Constructor Description StyleClassValidationDecoration()
Creates a default instance of a decoratorStyleClassValidationDecoration(String errorClass, String warningClass)
Creates an instance of validator using custom class namesStyleClassValidationDecoration(String errorClass, String warningClass, String infoClass, String okClass)
Creates an instance of validator using custom class names
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Decoration>
createRequiredDecorations(Control target)
protected Collection<Decoration>
createValidationDecorations(ValidationMessage message)
-
Methods inherited from class org.controlsfx.validation.decoration.AbstractValidationDecoration
applyRequiredDecoration, applyValidationDecoration, removeDecorations
-
-
-
-
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 decorationwarningClass
- 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 decorationwarningClass
- class name for warning decorationinfoClass
- class name for info decorationokClass
- class name for ok decoration
-
-
Method Detail
-
createValidationDecorations
protected Collection<Decoration> createValidationDecorations(ValidationMessage message)
- Specified by:
createValidationDecorations
in classAbstractValidationDecoration
-
createRequiredDecorations
protected Collection<Decoration> createRequiredDecorations(Control target)
- Specified by:
createRequiredDecorations
in classAbstractValidationDecoration
-
-