Top Description Inners Fields Constructors Methods
com.calendarfx.view

public abstract Class DateControl

extends CalendarFXControl
Class Inheritance
Known Direct Subclasses
com.calendarfx.view.DayViewBase, com.calendarfx.view.MonthSheetView, com.calendarfx.view.MonthViewBase, com.calendarfx.view.WeekDayHeaderView, com.calendarfx.view.YearView, com.calendarfx.view.page.PageBase, com.calendarfx.view.print.PrintablePage, com.calendarfx.view.AgendaView, com.calendarfx.view.AllDayView, com.calendarfx.view.CalendarView
Imports
com.calendarfx.model.Calendar, .CalendarSource, .Entry, .Interval, com.calendarfx.util.ViewHelper, .WeakList, com.calendarfx.view.page.DayPage, com.calendarfx.view.popover.DatePopOver, .EntryPopOverContentPane, javafx.application.Platform, javafx.beans.InvalidationListener, .Observable, .WeakInvalidationListener, javafx.beans.binding.Bindings, javafx.beans.property.BooleanProperty, .IntegerProperty, .ObjectProperty, .ReadOnlyListProperty, .ReadOnlyListWrapper, .SimpleBooleanProperty, .SimpleIntegerProperty, .SimpleObjectProperty, javafx.beans.value.ObservableValue, javafx.collections.FXCollections, .ObservableList, .ObservableMap, .ObservableSet, javafx.geometry.Point2D, javafx.scene.Node, .Parent, javafx.scene.control.Alert, .Alert.AlertType, .ContextMenu, .Label, .Menu, .MenuItem, .RadioMenuItem, .SelectionMode, javafx.scene.input.ContextMenuEvent, .InputEvent, .MouseEvent, javafx.scene.layout.StackPane, javafx.scene.paint.Color, .Paint, javafx.scene.shape.Rectangle, javafx.stage.Modality, javafx.util.Callback, org.controlsfx.control.PopOver, .PopOver.ArrowLocation, .PropertySheet.Item, java.text.MessageFormat, java.time.DayOfWeek, .Duration, .LocalDate, .LocalTime, .ZoneId, .ZonedDateTime, java.time.temporal.ChronoUnit, .WeekFields, java.util.ArrayList, .List, .Locale, .Objects, .Optional

The superclass for all controls that are showing calendar information. This class is responsible for:

Binding

Date controls are bound to each other to create complex date controls like the CalendarView. When date controls are bound to each other via the bind(DateControl, boolean) method then most of their properties will be bound to each other. This not only includes date and time zone properties but also all the factory and detail callbacks. This allows an application to create a complex calendar control and to configure only that control without worrying about the date controls that are nested inside it. The children will all "inherit" their settings from the parent control.

Current Date, Today, First Day of Week

The dateProperty() is used to store the date that the control has to display. For the DayView this would mean that it has to show exactly that date. The DetailedWeekView would only have to guarantee that it shows the week that contains this date. For this the DetailedWeekView uses the getFirstDayOfWeek() method that looks up its value from the week fields stored in the weekFieldsProperty(). The todayProperty() is mainly used for highlighting today's date in the view (e.g. a red background).

Creating Sources, Calendars, Entries

The date control uses various factories to create new sources, calendars, and entries. Each factory has to implement the Callback interface. The factories will be invoked when the application calls createCalendarSource() or createEntryAt(ZonedDateTime).

Context Menu

Date controls can either set a context menu explicitly via setContextMenu(ContextMenu) or by providing a callback that gets invoked every time the context menu event is received (see setContextMenuCallback(Callback)). If a context menu has been set explicitly then the callback will never be called again.

Details for Entries and Dates

When clicking on an entry or a date the user wants to see details regarding the entry or the date. Callbacks for this can be registered via setEntryDetailsCallback(Callback) and setDateDetailsCallback(Callback). The callbacks can decide which kind of user interface they want to show to the user. The default implementation for both callbacks is a PopOver control from the ControlsFX project.

Selection Handling

Date controls use a very simple selection concept. All selected entries are stored inside an observable list (see getSelections()). The controls support single and multiple selections (see setSelectionMode(SelectionMode)). Due to the binding approach it does not matter in which child date control an entry gets selected. All controls will always know which entries are selected.

Virtual Grid

A virtual grid is used for editing. It allows the start and end times of entries to snap to "virtual" grid lines. The grid can be used to make the times always snap to 5, 10, 15, 30 minutes for example. This makes it easier to align entries to each other and covers the most common use cases. More precise times can always be set in the details.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DateControl.ContextMenuParameter

The parameter object passed to the context menu callback.

private abstract static class
public static class
DateControl.CreateCalendarSourceParameter

The parameter object passed to the calendar source factory.

public static class
DateControl.CreateEntryParameter

The parameter object passed to the entry factory.

public static class
DateControl.DateDetailsParameter

The parameter object passed to the date details callback.

private abstract static class
public static enum
DateControl.EditOperation

Possible edit operations on an entry.

public static class
DateControl.EntryContextMenuParameter

The parameter object passed to the context menu callback for entries.

public static class
DateControl.EntryDetailsParameter

The parameter object passed to the entry details callback.

public static class
DateControl.EntryDetailsPopOverContentParameter

The parameter object passed to the entry details popover content callback.

public static class
DateControl.EntryEditParameter

Class used for parameter of DateControl#entryEditPolicy functional interface.

public static enum
public static enum
DateControl.Layout

Supported layout strategies by the DayView.

public static enum

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<Calendar<T>>
private final ObjectProperty<Paint>
private final ObjectProperty<VirtualGrid>
private final ObservableList<ZoneId>
private final WeakList<DateControl>
private final ReadOnlyListWrapper<Calendar<T>>
private final ObjectProperty<Callback<DateControl.CreateCalendarSourceParameter, CalendarSource>>
private final ObservableList<CalendarSource>
private final ObservableMap<Calendar<T>, BooleanProperty>
private final ObjectProperty<Callback<DateControl.ContextMenuParameter, ContextMenu>>
private final IntegerProperty
private final ObjectProperty<LocalDate>
private static final String
private final ObjectProperty<Callback<DateControl.DateDetailsParameter, Boolean>>
private final ObjectProperty<Callback<DateControl, Calendar<T>>>
private final ObjectProperty<DraggedEntry>
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final ObjectProperty<LocalTime>
private final ObjectProperty<Callback<DateControl.EntryContextMenuParameter, ContextMenu>>
private final ObjectProperty<Callback<DateControl.EntryDetailsParameter, Boolean>>
private final ObjectProperty<Callback<DateControl.EntryDetailsPopOverContentParameter, Node>>
private final ObjectProperty<Callback<DateControl.EntryEditParameter, Boolean>>
private final ObjectProperty<Callback<DateControl.CreateEntryParameter, Entry<?>>>
private PopOver
private final ObjectProperty<DateControl.Layout>
private final ObjectProperty<LocalTime>
private final ObjectProperty<SelectionMode>
private final ObservableSet<Entry<?>>
private final BooleanProperty
private final BooleanProperty
private final BooleanProperty
private final ObjectProperty<LocalTime>
private final BooleanProperty
private final ObjectProperty<LocalTime>
private final ObjectProperty<LocalDate>
private final ObservableList<Calendar<T>>
private final InvalidationListener
public final ObjectProperty<Callback<Integer, DateControl.Usage>>
private Boolean
private final ObjectProperty<VirtualGrid>
private final ObservableSet<DateControl.Layer>
private final WeakInvalidationListener
private final ObservableSet<DayOfWeek>
private final ObjectProperty<WeekFields>
private final ObjectProperty<ZoneId>

Constructor Summary

AccessConstructor and Description
protected
DateControl()

Constructs a new date control and initializes all factories and callbacks with default implementations.

Method Summary

Modifier and TypeMethod and Description
public final ObjectProperty<Calendar<T>>

Returns:

the background calendar used for this view
availabilityCalendarProperty
()

A background calendar used to display "availability" of a resource.

public final ObjectProperty<Paint>

Returns:

the color used for filling "unavailable" time slots
availabilityFillProperty
()

The color used for drawing the availability background information behind the calendar entries.

public final ObjectProperty<VirtualGrid>

Returns:

the availability calendar grid size
availabilityGridProperty
()

Defines a virtual grid to be used for working with the availability calendar.

public final void
bind(DateControl
the control that will be bound to this control
otherControl
,
boolean
determines if the date property will also be bound
bindDate
)

Binds several properties of the given date control to the same properties of this control.

public final ObjectProperty<Callback<DateControl.CreateCalendarSourceParameter, CalendarSource>>

Returns:

the calendar source factory
calendarSourceFactoryProperty
()

A factory for creating a new calendar source, e.g. a new Google calendar account.

public final ReadOnlyListProperty<Calendar<T>>

Returns:

the list of all calendars shown by this control
calendarsProperty
()

A list that contains all calendars found in all calendar sources currently attached to this date control.

public final void
clearSelection()

Clears the current selection of entries.

public final ObjectProperty<Callback<DateControl.ContextMenuParameter, ContextMenu>>

Returns:

the context menu callback
contextMenuCallbackProperty
()

The context menu callback that will be invoked when the user triggers the context menu by clicking in an area without an entry view.

public final void
createCalendarSource()

Creates a new calendar source that will be added to the list of calendar sources of this date control.

public final Entry<?>

Returns:

the new calendar entry or null if no entry could be created
createEntryAt
(ZonedDateTime
the time point where the entry will be created (the entry start time)
time
)

Creates a new entry at the given time.

public final Entry<?>

Returns:

the new calendar entry or null if no entry could be created
createEntryAt
(ZonedDateTime
the time point where the entry will be created (the entry start time)
time
,
Calendar<T>
the calendar to which the new entry will be added (if null the default calendar provider will be invoked)
calendar
)

Creates a new entry at the given time.

public final Entry<?>

Returns:

the new calendar entry or null if no entry could be created
createEntryAt
(ZonedDateTime
the time point where the entry will be created (the entry start time)
time
,
Calendar<T>
the calendar to which the new entry will be added (if null the default calendar provider will be invoked)
calendar
,
boolean
entry will be invisible until the application calls Entry#setHidden(boolean).
initiallyHidden
)

Creates a new entry at the given time.

public IntegerProperty

Returns:

the number of mouse clicks required for creating a new entry
createEntryClickCountProperty
()

An integer that determines how many times the user has to perform a primary mouse button click in order to create a new entry.

public final ObjectProperty<Callback<DateControl.DateDetailsParameter, Boolean>>

Returns:

the callback for showing details for a given date
dateDetailsCallbackProperty
()

A callback used for showing the details of a given date.

public final ObjectProperty<LocalDate>

Returns:

the date shown by the control
dateProperty
()

The date that needs to be shown by the date control.

public final ObjectProperty<Callback<DateControl, Calendar<T>>>

Returns:

the default calendar provider callback
defaultCalendarProviderProperty
()

The default calendar provider is responsible for returning a calendar that can be used to add a new entry.

public final void
deselect(Entry<?>
the selected entries
entry
)

Removes the given entry from the set of currently selected entries.

private void
doBounceEntry(Entry<?> entry)

private void
doEditEntry(Entry<?> entry)

private EntryViewBase<?>
doFindEntryView(Parent parent, Entry<?> entry)

private void
doShowEntry(Entry<?> entry, boolean startEditing, boolean changeDate)

public final ObjectProperty<DraggedEntry>

Returns:

the dragged entry
draggedEntryProperty
()

Stores a DraggedEntry instance, which serves as a wrapper around the actual entry that is currently being edited by the user.

public BooleanProperty

Returns:

true if the user can edit availability
editAvailabilityProperty
()

A flag used to signal whether the user is allowed to modify the availability calendar.

public final void
editEntry(Entry<?>
the entry to show
entry
)

Adjusts the current view / page in such a way that the given entry becomes visible and brings up the detail editor / UI for the entry (default is a popover).

public final void
editEntry(Entry<?>
the entry to show
entry
,
boolean
change the date of the control to the entry's start date
changeDate
)

Adjusts the current view / page in such a way that the given entry becomes visible and brings up the detail editor / UI for the entry (default is a popover).

public final BooleanProperty

Returns:

true if the support for hyperlinks is enabled
enableHyperlinksProperty
()

A property used to control whether the control allows the user to click on it or an element inside it in order to "jump" to another screen with more detail.

public final BooleanProperty

Returns:

true if time zone support is enabled
enableTimeZoneSupportProperty
()

Enables or disables user options to work with different time zones.

public final ObjectProperty<LocalTime>

Returns:

the end time
endTimeProperty
()

An end time used to limit the time interval shown by the control.

public final ObjectProperty<Callback<DateControl.EntryContextMenuParameter, ContextMenu>>

Returns:

the property used for storing the callback
entryContextMenuCallbackProperty
()

A callback used for dynamically creating a context menu for a given entry view.

public final ObjectProperty<Callback<DateControl.EntryDetailsParameter, Boolean>>

Returns:

the callback used for showing details for a given entry
entryDetailsCallbackProperty
()

A callback used for showing the details of a given entry.

public final ObjectProperty<Callback<DateControl.EntryDetailsPopOverContentParameter, Node>>

Returns:

the popover content callback
entryDetailsPopOverContentCallbackProperty
()

Stores a callback for creating the content of the popover.

public final ObjectProperty<Callback<DateControl.EntryEditParameter, Boolean>>

Returns:

the property
entryEditPolicyProperty
()

A property that stores a callback used for editing entries.

public final ObjectProperty<Callback<DateControl.CreateEntryParameter, Entry<?>>>

Returns:

the entry factory callback
entryFactoryProperty
()

A factory for creating new entries when the user double clicks inside the date control or when the application calls createEntryAt(ZonedDateTime).

public final EntryViewBase<?>

Returns:

the view
findEntryView
(Entry<?>
the entry
entry
)

Finds the first view that represents the given entry.

public final Calendar<T>
public final Paint
public final VirtualGrid
public final ObservableList<ZoneId>

Returns:

the list of available time zone IDs
getAvailableZoneIds
()

A list of time zones / time zone IDs that will be available to the user in the date controls.

public final WeakList<DateControl>

Returns:

the bound date controls / sub controls / children controls
getBoundDateControls
()

Returns all data controls that are bound to this control.

public Optional<Calendar<T>>

Returns:

the calendar at the given location
getCalendarAt
(double
the x-coordinate to check
x
,
double
the y-coordinate to check
y
)

Returns the calendar shown at the given location.

public final ObservableList<Calendar<T>>

Returns:

the list of all calendars shown by this control
getCalendars
()

Returns the value of calendarsProperty().

public final Callback<DateControl.CreateCalendarSourceParameter, CalendarSource>

Returns:

the calendar source factory
getCalendarSourceFactory
()

Returns the value of calendarSourceFactoryProperty().

public final ObservableList<CalendarSource>

Returns:

the calendar sources
getCalendarSources
()

The list of all calendar sources attached to this control.

public final ObservableMap<Calendar<T>, BooleanProperty>
public final BooleanProperty
public final Callback<DateControl.ContextMenuParameter, ContextMenu>

Returns:

the context menu callback
getContextMenuCallback
()

Returns the value of contextMenuCallbackProperty().

public int
public final LocalDate

Returns:

the date shown by the control
getDate
()

Returns the value of dateProperty().

public final Callback<DateControl.DateDetailsParameter, Boolean>

Returns:

the date details callback
getDateDetailsCallback
()

Returns the value of dateDetailsCallbackProperty().

public final Callback<DateControl, Calendar<T>>

Returns:

the default calendar provider
getDefaultCalendarProvider
()

Returns the value of defaultCalendarProviderProperty().

public final DraggedEntry

Returns:

the dragged entry
getDraggedEntry
()

Returns the value of draggedEntryProperty().

public final LocalTime

Returns:

the end time
getEndTime
()

Returns the value of endTimeProperty().

public final Callback<DateControl.EntryContextMenuParameter, ContextMenu>

Returns:

the callback for creating a context menu for a given calendar entry
getEntryContextMenuCallback
()

Returns the value of entryContextMenuCallbackProperty().

public final Callback<DateControl.EntryDetailsParameter, Boolean>

Returns:

the entry details callback
getEntryDetailsCallback
()

Returns the value of entryDetailsCallbackProperty().

public final Callback<DateControl.EntryDetailsPopOverContentParameter, Node>

Returns:

the entry details popover content callback
getEntryDetailsPopOverContentCallback
()

Returns the value of entryDetailsPopOverContentCallbackProperty().

public final Callback<DateControl.EntryEditParameter, Boolean>

Returns:

The entry edit policy callback
getEntryEditPolicy
()

Returns the value of entryEditPolicy.

public final Callback<DateControl.CreateEntryParameter, Entry<?>>

Returns:

the factory used for creating a new entry
getEntryFactory
()

Returns the value of entryFactoryProperty().

public final DayOfWeek

Returns:

the first day of the week
getFirstDayOfWeek
()

A convenience method to look up the first day of the week ("Monday" in Germany, "Sunday" in the US).

public final DateControl.Layout

Returns:

the layout strategy
getLayout
()

Returns the value of layoutProperty().

public ObservableList<PropertySheet.Item>
getPropertySheetItems()

Overrides com.calendarfx.view.CalendarFXControl.getPropertySheetItems.

Returns a list of property items that can be shown by the PropertySheet of ControlsFX.

public final LocalTime

Returns:

the requested time
getRequestedTime
()

Returns the value of requestedTimeProperty().

public final SelectionMode

Returns:

the selection mode (single, multiple)
getSelectionMode
()

Returns the value of selectionModeProperty().

public final ObservableSet<Entry<?>>

Returns:

the set of currently selected entries
getSelections
()

Stores the currently selected entries.

public final LocalTime

Returns:

the start time
getStartTime
()

Returns the value of startTimeProperty().

public final LocalTime

Returns:

the current time
getTime
()

Returns the value of timeProperty().

public final LocalDate

Returns:

the date representing "today"
getToday
()

Returns the value of todayProperty().

public final Callback<Integer, DateControl.Usage>

Returns:

the new usage policy
getUsagePolicy
()

Returns the value of usagePolicyProperty().

public final VirtualGrid

Returns:

the currently active grid
getVirtualGrid
()

Returns the value of virtualGridProperty().

public ObservableSet<DayOfWeek>

Returns:

the weekend days
getWeekendDays
()

Returns the days of the week that are considered to be weekend days, for example Saturday and Sunday, or Friday and Saturday.

public final WeekFields

Returns:

the week fields
getWeekFields
()

Returns the value of weekFieldsProperty().

public final ZonedDateTime

Returns:

the zoned date time version of the current time property
getZonedDateTime
()

Returns the zoned date time version of the current time.

public final ZoneId

Returns:

the time zone
getZoneId
()

Returns the value of zoneIdProperty().

public void
goBack()

Makes the control go forward in time by removing one or more days from the current date.

public void
goForward()

Makes the control go forward in time by adding one or more days to the current date.

public void
goToday()

Makes the control go to "today".

public final boolean
public boolean
public final boolean
public final boolean
public final boolean
public final boolean

Returns:

true if today will be highlighted visually
isShowToday
()

Returns the value of showTodayProperty().

public final boolean

Returns:

true if updates are suspended
isSuspendUpdates
()

Returns the value of suspendUpdatesProperty().

public final ObjectProperty<DateControl.Layout>

Returns:

the layout strategy of the view
layoutProperty
()

Stores the strategy used by the view to lay out the entries of several calendars at once.

public final void
refreshData()

Requests that the date control should reload its data and recreate its entry views.

public final ObjectProperty<LocalTime>

Returns:

the requested time
requestedTimeProperty
()

Stores the time that the application wants to show in its date controls when the UI opens up.

public final void
select(Entry<?>
the selected entries
entry
)

Adds the given entry to the set of currently selected entries.

public final ObjectProperty<SelectionMode>

Returns:

the selection mode
selectionModeProperty
()

Stores the selection mode.

public final void
public final void
setAvailabilityFill(Paint availabilityFill)

public final void
setAvailabilityGrid(VirtualGrid availabilityGrid)

public final void
setCalendarSourceFactory(Callback<DateControl.CreateCalendarSourceParameter, CalendarSource>
the callback used for creating a new calendar source
callback
)

Sets the value of calendarSourceFactoryProperty().

public final void
setCalendarVisibility(Calendar<T> calendar, boolean visible)

public final void
public void
setCreateEntryClickCount(int createEntryClickCount)

public final void
setDate(LocalDate
the date shown by the control
date
)

Sets the value of dateProperty().

public final void
public final void
setDefaultCalendarProvider(Callback<DateControl, Calendar<T>>
the default calendar provider
provider
)

Sets the value of defaultCalendarProviderProperty().

public final void
setDraggedEntry(DraggedEntry
the dragged entry
entry
)

Sets the value of draggedEntryProperty().

public void
setEditAvailability(boolean editAvailability)

public final void
setEnableTimeZoneSupport(boolean enableTimeZoneSupport)

public final void
setEndTime(LocalTime
the end time
time
)

Sets the value of endTimeProperty().

public final void
setEntryContextMenuCallback(Callback<DateControl.EntryContextMenuParameter, ContextMenu>
the callback used for creating a context menu for a calendar entry
callback
)

Sets the value of entryContextMenuCallbackProperty().

public final void
public final void
public final void
setEntryEditPolicy(Callback<DateControl.EntryEditParameter, Boolean>
the entry edit policy callback
policy
)

Sets the value of entryEditPolicy.

public final void
setEntryFactory(Callback<DateControl.CreateEntryParameter, Entry<?>>
the factory used for creating a new entry
factory
)

Sets the value of entryFactoryProperty().

public final void
setLayout(DateControl.Layout
the layout
layout
)

Sets the value of layoutProperty().

public final void
setRequestedTime(LocalTime
the requested time
time
)

Sets the value of requestedTimeProperty().

public final void
setSelectionMode(SelectionMode
the selection mode (single, multiple)
mode
)

Sets the value of selectionModeProperty().

public final void
setShowDetailsUponEntryCreation(boolean showDetailsUponEntryCreation)

public final void
setShowNoonMarker(boolean showNoonMarker)

public final void
setShowToday(boolean
if true today will be highlighted visually
show
)

Sets the value of showTodayProperty().

public final void
setStartTime(LocalTime
the start time
time
)

Sets the value of startTimeProperty().

public final void
setSuspendUpdates(boolean
if true updates are suspended
suspend
)

Sets the value of suspendUpdatesProperty().

public final void
setTime(LocalTime
the current time
time
)

Sets the value of timeProperty().

public final void
setToday(LocalDate
the date representing "today"
date
)

Sets the value of todayProperty().

public final void
setUsagePolicy(Callback<Integer, DateControl.Usage>
the new usage policy
policy
)

Sets the value of usagePolicyProperty().

public final void
setVirtualGrid(VirtualGrid
the grid
grid
)

Sets the value of virtualGridProperty().

public final void
setWeekFields(WeekFields
the new week fields
weekFields
)

Sets the value of weekFieldsProperty().

public final void
setZoneId(ZoneId
the time zone
zoneId
)

Sets the value of zoneIdProperty().

public void
showDateDetails(Node
the owner node
owner
,
LocalDate
the date for which to display more detail
date
)

Creates a new DatePopOver and shows it attached to the given owner node.

public final BooleanProperty

Returns:

true if the date control shows a dialog immediately after a new entry was added by the user
showDetailsUponEntryCreationProperty
()

Determines if the entryDetailsCallbackProperty() will be used to display a dialog for a newly added calendar entry.

public final void
showEntry(Entry<?>
the entry to show
entry
)

Adjusts the current view / page in such a way that the given entry becomes visible.

private void
showEntryDetails(Entry<?> entry, Node node, Node owner, double screenY)

public final BooleanProperty

Returns:

true if noon will be marked in a special way
showNoonMarkerProperty
()

A property used to indicate whether the day view should mark noon with a special marker.

public final BooleanProperty

Returns:

true if today will be shown differently
showTodayProperty
()

A flag used to indicate that the view will mark the area that represents the value of todayProperty().

public final ObjectProperty<LocalTime>

Returns:

the start time
startTimeProperty
()

A start time used to limit the time interval shown by the control.

public final BooleanProperty

Returns:

true if updates are suspended
suspendUpdatesProperty
()

A property that will suspend all updates to the view based on model changes.

public final ObjectProperty<LocalTime>

Returns:

the current time
timeProperty
()

Stores a time that can be visualized, e.g. the thin line in DayView representing the current time.

public final ObjectProperty<LocalDate>

Returns:

the date representing "today"
todayProperty
()

Stores the date that is considered to represent "today".

public final void
unbind(DateControl
the control to unbind
otherControl
)

Unbinds the given control from this control.

public final void
unbindAll()

Unbinds all bound date controls.

private void
public final ObjectProperty<Callback<Integer, DateControl.Usage>>

Returns:

the usage policy
usagePolicyProperty
()

A property used to store a policy that will be used to determine if a given number of entries indicates a low or high usage of that day.

public final ObjectProperty<VirtualGrid>

Returns:

the virtual grid
virtualGridProperty
()

A virtual grid used for snapping to invisible grid lines while editing calendar entries.

public final ObservableSet<DateControl.Layer>
visibleLayersProperty()

Collection of layers which should be visible/presented.

public final ObjectProperty<WeekFields>

Returns:

the week fields
weekFieldsProperty
()

Week fields are used to determine the first day of a week (e.g. "Monday" in Germany or "Sunday" in the US).

public final ObjectProperty<ZoneId>

Returns:

the time zone used by the date control for calculating entry view layouts
zoneIdProperty
()

The time zone used by the date control.

Inherited from com.calendarfx.view.CalendarFXControl:
getUserAgentStylesheet