public final class CalendarDisplayOptions
extends org.freedesktop.bindings.Flag
Calendar
Widget.
You can specify one or several of these using the method
setDisplayOptions()
in Calendar.
Modifier and Type | Field and Description |
---|---|
static CalendarDisplayOptions |
NO_MONTH_CHANGE
Prevents the user from switching months (and years) with the Calendar
widget, forcing it to display only whichever month has been set by the
programmer.
|
static CalendarDisplayOptions |
SHOW_DAY_NAMES
Whether to show the names of the days in the Calendar.
|
static CalendarDisplayOptions |
SHOW_HEADING
When set the Calendar will display a heading showing with the current
year and month.
|
static CalendarDisplayOptions |
SHOW_WEEK_NUMBERS
Displays the week number (relative to the start of the current year)
down the left side of the Calendar.
|
Modifier and Type | Method and Description |
---|---|
static CalendarDisplayOptions |
or(CalendarDisplayOptions one,
CalendarDisplayOptions two)
Returns a CalendarDisplayOptions object that contains all options
specified by the two given arguments.
|
public static final CalendarDisplayOptions NO_MONTH_CHANGE
public static final CalendarDisplayOptions SHOW_DAY_NAMES
public static final CalendarDisplayOptions SHOW_HEADING
So long as NO_MONTH_CHANGE
is not specified, the user can
change both the month and the year shown in the Calendar using little
arrows that will appear in the header.
public static final CalendarDisplayOptions SHOW_WEEK_NUMBERS
public static CalendarDisplayOptions or(CalendarDisplayOptions one, CalendarDisplayOptions two)