Class AbstractTimeValidator<T>
java.lang.Object
io.jmix.flowui.component.validation.time.AbstractTimeValidator<T>
- All Implemented Interfaces:
- TimeValidator
- Direct Known Subclasses:
- AbstractTimeValidator.DateConstraint,- AbstractTimeValidator.LocalDateConstraint,- AbstractTimeValidator.LocalDateTimeConstraint,- AbstractTimeValidator.LocalTimeConstraint,- AbstractTimeValidator.OffsetDateTimeConstraint,- AbstractTimeValidator.OffsetTimeConstraint
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected static Map<Class<?>,TimeValidator> protected TimeSourceprotected T
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract intbooleanisFuture()booleanbooleanisPast()booleanvoidsetCheckSeconds(boolean checkSeconds) Sets check seconds to validator.
- 
Field Details- 
timeSource
- 
value
- 
checkSecondsprotected boolean checkSeconds
- 
constraints
 
- 
- 
Constructor Details- 
AbstractTimeValidator
 
- 
- 
Method Details- 
isPastpublic boolean isPast()- Specified by:
- isPastin interface- TimeValidator
- Returns:
- true if date or time in the past
 
- 
isPastOrPresentpublic boolean isPastOrPresent()- Specified by:
- isPastOrPresentin interface- TimeValidator
- Returns:
- true if date or time in the past or present
 
- 
isFuturepublic boolean isFuture()- Specified by:
- isFuturein interface- TimeValidator
- Returns:
- true if date or time in the future
 
- 
isFutureOrPresentpublic boolean isFutureOrPresent()- Specified by:
- isFutureOrPresentin interface- TimeValidator
- Returns:
- true if date or time in the future or present
 
- 
setCheckSecondspublic void setCheckSeconds(boolean checkSeconds) Description copied from interface:TimeValidatorSets check seconds to validator. Set true if validator should check seconds and nanos while it comparing dates or times.- Specified by:
- setCheckSecondsin interface- TimeValidator
- Parameters:
- checkSeconds- check seconds and nanos option, false by default
 
- 
compareValueWithCurrentpublic abstract int compareValueWithCurrent()
 
-