Class CalendarBusinessHours

java.lang.Object
io.jmix.fullcalendarflowui.component.model.CalendarBusinessHours
All Implemented Interfaces:
Serializable

public class CalendarBusinessHours extends Object implements Serializable
A business hours entry.
See Also:
  • Field Details

  • Method Details

    • of

      public static CalendarBusinessHours of(DayOfWeek... daysOfWeek)
      Creates business hours entry from days-of-week. The duration of business hours will be calculated from start of the day to JmixFullCalendar.getDefaultTimedEventDuration().
      Parameters:
      daysOfWeek - days of week
      Returns:
      business hours entry
    • of

      public static CalendarBusinessHours of(LocalTime startTime)
      Creates business hours entry from start time. The duration of business hours will be equal to JmixFullCalendar.getDefaultTimedEventDuration(). This time will be applied for all days of week.
      Parameters:
      startTime - start time of business hours
      Returns:
      business hours entry
    • of

      public static CalendarBusinessHours of(LocalTime startTime, LocalTime endTime)
      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 hours
      endTime - end time of business hours
      Returns:
      business hours entry
    • of

      public static CalendarBusinessHours of(LocalTime startTime, DayOfWeek... daysOfWeek)
      Creates business hours entry from start time and days of week. The duration of business hours will be equal to JmixFullCalendar.getDefaultTimedEventDuration(). This time will be applied for the provided days.
      Parameters:
      startTime - start time of business hours
      daysOfWeek - 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 hours
      endTime - end time of business hours
      daysOfWeek - days of week
      Returns:
      business hours entry
    • getStartTime

      @Nullable public LocalTime getStartTime()
      Returns:
      start time of business hours or null if not set
    • getEndTime

      @Nullable public LocalTime getEndTime()
      Returns:
      end time of business hours or null if not set
    • getDaysOfWeek

      public Set<DayOfWeek> getDaysOfWeek()
      Returns:
      days of business hours