Module is.codion.swing.common.ui
Interface CalendarPanel.Builder
- Enclosing class:
- CalendarPanel
public static interface CalendarPanel.Builder
Builds a
CalendarPanel
instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
includeTime
(boolean includeTime) initialValue
(LocalDate initialValue) Note that calling this method also setsincludeTime(boolean)
to falseinitialValue
(LocalDateTime initialValue) Note that calling this method also setsincludeTime(boolean)
to truekeyStroke
(CalendarPanel.KeyboardShortcut keyboardShortcut, KeyStroke keyStroke)
-
Method Details
-
initialValue
Note that calling this method also setsincludeTime(boolean)
to false- Parameters:
initialValue
- the initial value- Returns:
- this builder instance
-
initialValue
Note that calling this method also setsincludeTime(boolean)
to true- Parameters:
initialValue
- the initial value- Returns:
- this builder instance
-
includeTime
- Parameters:
includeTime
- if true then time fields are included (hours, minutes)- Returns:
- this builder instance
-
keyStroke
CalendarPanel.Builder keyStroke(CalendarPanel.KeyboardShortcut keyboardShortcut, KeyStroke keyStroke) - Parameters:
keyboardShortcut
- the keyboard shortcut keykeyStroke
- 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
-