Interface IValidationBuilder<V,R>
- Type Parameters:
V- type of the valueR- next step of the builder
- All Known Subinterfaces:
ContainerSpinnerSectionBuilder.FinalBuilder<T,,V> EmfSpinnerBuilder.FinalBuilder<T,,V> EmfSpinnerSectionBuilder.FinalBuilder<T,,V> SpinnerBuilder.FinalBuilder<V>,SpinnerSectionBuilder.FinalBuilder<V>
- All Known Implementing Classes:
ContainerSpinnerSectionBuilder.Builder,EmfSpinnerBuilder.Builder,EmfSpinnerSectionBuilder.Builder,SpinnerBuilder.Builder,SpinnerSectionBuilder.Builder
public interface IValidationBuilder<V,R>
Step of a spinner section builder that sets a check of the value.
- Author:
- Ionov Ivan
-
Method Summary
Modifier and TypeMethodDescriptionvalidation(Predicate<V> validation, String message) Sets a check of the value.
-
Method Details
-
validation
Sets a check of the value. A value that fails it is not written, and an error icon with the message as its tooltip is shown next to the spinner.- Parameters:
validation- the check; gets a value that is notnullmessage- the tooltip of the error icon- Returns:
- the next step of the builder
-