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
Modifier and TypeMethodDescriptionvoidapplyRequiredDecoration(Control target) Applies 'required' decoration to a given controlvoidApplies validation decoration based on a given validation messagevoidremoveDecorations(Control target) Removes all validation specific decorations from the target control.
-
Method Details
-
removeDecorations
Removes all validation specific decorations from the target control. Non-validation specific decorations are left untouched.- Parameters:
target-
-
applyValidationDecoration
Applies validation decoration based on a given validation message- Parameters:
message- validation message
-
applyRequiredDecoration
Applies 'required' decoration to a given control- Parameters:
target- control
-