Module org.controlsfx.controls
Interface ValidationDecoration
-
- All Known Implementing Classes:
AbstractValidationDecoration
,CompoundValidationDecoration
,GraphicValidationDecoration
,StyleClassValidationDecoration
public interface ValidationDecoration
Contract for validation decorators. Classes implementing this interface are used for decorating components with error/warning conditions, if such exists. They also used for marking 'required' components.
-
-
Method Summary
All Methods Instance Methods Abstract 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 messagevoid
removeDecorations(Control target)
Removes all validation specific decorations from the target control.
-
-
-
Method Detail
-
removeDecorations
void removeDecorations(Control target)
Removes all validation specific decorations from the target control. Non-validation specific decorations are left untouched.- Parameters:
target
-
-
applyValidationDecoration
void applyValidationDecoration(ValidationMessage message)
Applies validation decoration based on a given validation message- Parameters:
message
- validation message
-
applyRequiredDecoration
void applyRequiredDecoration(Control target)
Applies 'required' decoration to a given control- Parameters:
target
- control
-
-