Interface CalendarPanel.Builder

Enclosing class:
CalendarPanel

public static interface CalendarPanel.Builder
Builds a CalendarPanel instance.
  • Method Details

    • initialValue

      CalendarPanel.Builder initialValue(LocalDate initialValue)
      Note that calling this method also sets includeTime(boolean) to false. In case of a null value LocalDate.now() is used.
      Parameters:
      initialValue - the initial value
      Returns:
      this builder instance
    • initialValue

      CalendarPanel.Builder initialValue(LocalDateTime initialValue)
      Note that calling this method also sets includeTime(boolean) to true. In case of a null value LocalDateTime.now() is used.
      Parameters:
      initialValue - the initial value
      Returns:
      this builder instance
    • includeTime

      CalendarPanel.Builder includeTime(boolean includeTime)
      Parameters:
      includeTime - if true then time fields are included (hours, minutes)
      Returns:
      this builder instance
    • includeTodayButton

      CalendarPanel.Builder includeTodayButton(boolean includeTodayButton)
      Parameters:
      includeTodayButton - true if a 'Today' button for selecting the current date should be included
      Returns:
      this builder instance
    • keyStroke

      CalendarPanel.Builder keyStroke(CalendarPanel.KeyboardShortcut keyboardShortcut, KeyStroke keyStroke)
      Parameters:
      keyboardShortcut - the keyboard shortcut key
      keyStroke - the keyStroke to assign to the given shortcut key, null resets to the default one
      Returns:
      this builder instance
    • build

      CalendarPanel build()
      Returns:
      a new CalendarPanel based on this builder