Module is.codion.swing.common.ui
Enum Class CalendarPanel.KeyboardShortcut
java.lang.Object
java.lang.Enum<CalendarPanel.KeyboardShortcut>
is.codion.swing.common.ui.component.calendar.CalendarPanel.KeyboardShortcut
- All Implemented Interfaces:
KeyboardShortcuts.Shortcut
,Serializable
,Comparable<CalendarPanel.KeyboardShortcut>
,Constable
- Enclosing class:
- CalendarPanel
public static enum CalendarPanel.KeyboardShortcut
extends Enum<CalendarPanel.KeyboardShortcut>
implements KeyboardShortcuts.Shortcut
The available keyboard shortcuts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSelect the next day.
Default: ALT-RIGHT ARROWSelect the next hour.
Default: SHIFT-ALT-UP ARROWSelect the next minute.
Default: CTRL-ALT-UP ARROWSelect the next month.
Default: SHIFT-UP ARROWSelect the next week.
Default: ALT-DOWN ARROWSelect the next year.
Default: CTRL-UP ARROWSelect the previous day.
Default: ALT-LEFT ARROWSelect the previous hour.
Default: SHIFT-ALT-DOWN ARROWSelect the previous minute.
Default: CTRL-ALT-DOWN ARROWSelect the previous month.
Default: SHIFT-DOWN ARROWSelect the previous week.
Default: ALT-UP ARROWSelect the previous year.
Default: CTRL-DOWN ARROW -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CalendarPanel.KeyboardShortcut[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREVIOUS_YEAR
Select the previous year.
Default: CTRL-DOWN ARROW -
NEXT_YEAR
Select the next year.
Default: CTRL-UP ARROW -
PREVIOUS_MONTH
Select the previous month.
Default: SHIFT-DOWN ARROW -
NEXT_MONTH
Select the next month.
Default: SHIFT-UP ARROW -
PREVIOUS_WEEK
Select the previous week.
Default: ALT-UP ARROW -
NEXT_WEEK
Select the next week.
Default: ALT-DOWN ARROW -
PREVIOUS_DAY
Select the previous day.
Default: ALT-LEFT ARROW -
NEXT_DAY
Select the next day.
Default: ALT-RIGHT ARROW -
PREVIOUS_HOUR
Select the previous hour.
Default: SHIFT-ALT-DOWN ARROW -
NEXT_HOUR
Select the next hour.
Default: SHIFT-ALT-UP ARROW -
PREVIOUS_MINUTE
Select the previous minute.
Default: CTRL-ALT-DOWN ARROW -
NEXT_MINUTE
Select the next minute.
Default: CTRL-ALT-UP ARROW
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
defaultKeystroke
- Specified by:
defaultKeystroke
in interfaceKeyboardShortcuts.Shortcut
- Returns:
- the default keystroke for this shortcut
-