Class CalendarBusinessHours
java.lang.Object
io.jmix.fullcalendarflowui.component.model.CalendarBusinessHours
- All Implemented Interfaces:
Serializable
A business hours entry.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarBusinessHours
Creates business hours entry from days-of-week.static CalendarBusinessHours
Creates business hours entry from start time.static CalendarBusinessHours
Creates business hours entry from start time and days of week.static CalendarBusinessHours
Creates business hours entry from start and end times.static CalendarBusinessHours
Creates business hours entry from start and end times and days of week.
-
Field Details
-
daysOfWeek
-
startTime
-
endTime
-
-
Method Details
-
of
Creates business hours entry from days-of-week. The duration of business hours will be calculated from start of the day toJmixFullCalendar.getDefaultTimedEventDuration()
.- Parameters:
daysOfWeek
- days of week- Returns:
- business hours entry
-
of
Creates business hours entry from start time. The duration of business hours will be equal toJmixFullCalendar.getDefaultTimedEventDuration()
. This time will be applied for all days of week.- Parameters:
startTime
- start time of business hours- Returns:
- business hours entry
-
of
Creates business hours entry from start and end times. This time will be applied for all days of week.- Parameters:
startTime
- start time of business hoursendTime
- end time of business hours- Returns:
- business hours entry
-
of
Creates business hours entry from start time and days of week. The duration of business hours will be equal toJmixFullCalendar.getDefaultTimedEventDuration()
. This time will be applied for the provided days.- Parameters:
startTime
- start time of business hoursdaysOfWeek
- days of week- Returns:
- business hours entry
-
of
public static CalendarBusinessHours of(LocalTime startTime, LocalTime endTime, DayOfWeek... daysOfWeek) Creates business hours entry from start and end times and days of week. This time will be applied for the provided days.- Parameters:
startTime
- start time of business hoursendTime
- end time of business hoursdaysOfWeek
- days of week- Returns:
- business hours entry
-
getStartTime
- Returns:
- start time of business hours or
null
if not set
-
getEndTime
- Returns:
- end time of business hours or
null
if not set
-
getDaysOfWeek
- Returns:
- days of business hours
-