Class NextLastIntervalConverter
java.lang.Object
io.jmix.flowui.app.propertyfilter.dateinterval.converter.NextLastIntervalConverter
- All Implemented Interfaces:
DateIntervalConverter
@Component("flowui_NextLastIntervalConverter")
public class NextLastIntervalConverter
extends Object
implements DateIntervalConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected Messages
static final Pattern
Fields inherited from interface io.jmix.flowui.app.propertyfilter.dateinterval.converter.DateIntervalConverter
INCLUDING_CURRENT_DESCRIPTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(BaseDateInterval dateInterval) Formats date interval to string presentation.getLocalizedValue
(BaseDateInterval dateInterval) Formats date interval and gets localized value.boolean
Checks that provided date interval matches with converter's value pattern.Parses string presentation of date interval toBaseDateInterval
.void
setMessages
(Messages messages) boolean
-
Field Details
-
NEXT_LAST_PATTERN
-
DEFAULT_NEXT_LAST_FORMATTING_PATTERN
- See Also:
-
messages
-
-
Constructor Details
-
NextLastIntervalConverter
public NextLastIntervalConverter()
-
-
Method Details
-
setMessages
-
parse
Description copied from interface:DateIntervalConverter
Parses string presentation of date interval toBaseDateInterval
.- Specified by:
parse
in interfaceDateIntervalConverter
- Parameters:
dateInterval
- string presentation of date interval- Returns:
- configured date interval or null if input parameters is null or empty.
-
format
Description copied from interface:DateIntervalConverter
Formats date interval to string presentation.- Specified by:
format
in interfaceDateIntervalConverter
- Parameters:
dateInterval
- date interval instance- Returns:
- raw presentation of date interval
-
getLocalizedValue
Description copied from interface:DateIntervalConverter
Formats date interval and gets localized value.- Specified by:
getLocalizedValue
in interfaceDateIntervalConverter
- Parameters:
dateInterval
- date interval instance- Returns:
- localized value
-
matches
Description copied from interface:DateIntervalConverter
Checks that provided date interval matches with converter's value pattern.- Specified by:
matches
in interfaceDateIntervalConverter
- Parameters:
dateInterval
- string presentation of date interval- Returns:
true
if provided data interval matches with the value pattern of the converter,false
otherwise
-
supports
- Specified by:
supports
in interfaceDateIntervalConverter
- Parameters:
type
- date interval type- Returns:
true
if converter supports the given type,false
otherwise
-