Class RecurrentScheduleFieldValidator
java.lang.Object
com.flowingcode.vaadin.addons.recurrentschedulefield.ui.RecurrentScheduleFieldValidator
- All Implemented Interfaces:
Validator<DateTimeRange>,Serializable,BiFunction<DateTimeRange,ValueContext, ValidationResult>
Validator for
RecurrentScheduleField component.
Ensures that the selected date and time ranges, as well as the selected weekdays, are valid according to the component's rules.
- Author:
- Flowing Code
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DateTimeRange data, ValueContext valueContext) booleanisValid()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
RecurrentScheduleFieldValidator
Creates a new validator for the specifiedRecurrentScheduleFieldcomponent.Attaches manual validation to the date, time, and weekday selection fields of the picker.
- Parameters:
model- theRecurrentScheduleFieldcomponent to validate
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<DateTimeRange,ValueContext, ValidationResult> - Specified by:
applyin interfaceValidator<DateTimeRange>
-
isValid
public boolean isValid()
-