Module org.controlsfx.controls
Class CompoundValidationDecoration
- java.lang.Object
-
- org.controlsfx.validation.decoration.AbstractValidationDecoration
-
- org.controlsfx.validation.decoration.CompoundValidationDecoration
-
- All Implemented Interfaces:
ValidationDecoration
public class CompoundValidationDecoration extends AbstractValidationDecoration
Validation decoration to combine several existing decorations into one. Here is example of combiningGraphicValidationDecoration
andStyleClassValidationDecoration
-
-
Constructor Summary
Constructors Constructor Description CompoundValidationDecoration(Collection<ValidationDecoration> decorators)
Creates an instance of validator using a collection of validatorsCompoundValidationDecoration(ValidationDecoration... decorators)
Creates an instance of validator using a set of validators
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRequiredDecoration(Control target)
Applies 'required' decoration to a given controlvoid
applyValidationDecoration(ValidationMessage message)
Applies validation decoration based on a given validation messageprotected Collection<Decoration>
createRequiredDecorations(Control target)
protected Collection<Decoration>
createValidationDecorations(ValidationMessage message)
-
Methods inherited from class org.controlsfx.validation.decoration.AbstractValidationDecoration
removeDecorations
-
-
-
-
Constructor Detail
-
CompoundValidationDecoration
public CompoundValidationDecoration(Collection<ValidationDecoration> decorators)
Creates an instance of validator using a collection of validators- Parameters:
decorators
- collection of validators
-
CompoundValidationDecoration
public CompoundValidationDecoration(ValidationDecoration... decorators)
Creates an instance of validator using a set of validators- Parameters:
decorators
- set of validators
-
-
Method Detail
-
applyRequiredDecoration
public void applyRequiredDecoration(Control target)
Applies 'required' decoration to a given control- Specified by:
applyRequiredDecoration
in interfaceValidationDecoration
- Overrides:
applyRequiredDecoration
in classAbstractValidationDecoration
- Parameters:
target
- control
-
applyValidationDecoration
public void applyValidationDecoration(ValidationMessage message)
Applies validation decoration based on a given validation message- Specified by:
applyValidationDecoration
in interfaceValidationDecoration
- Overrides:
applyValidationDecoration
in classAbstractValidationDecoration
- Parameters:
message
- validation message
-
createValidationDecorations
protected Collection<Decoration> createValidationDecorations(ValidationMessage message)
- Specified by:
createValidationDecorations
in classAbstractValidationDecoration
-
createRequiredDecorations
protected Collection<Decoration> createRequiredDecorations(Control target)
- Specified by:
createRequiredDecorations
in classAbstractValidationDecoration
-
-