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.
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).
Callback interface. The factories will be invoked when
the application calls createCalendarSource() or
createEntryAt(ZonedDateTime).
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.
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.
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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | DateControl.
The parameter object passed to the context menu callback. |
| private abstract static class | |
| public static class | DateControl.
The parameter object passed to the calendar source factory. |
| public static class | DateControl.
The parameter object passed to the entry factory. |
| public static class | DateControl.
The parameter object passed to the date details callback. |
| private abstract static class | |
| public static enum | DateControl.
Possible edit operations on an entry. |
| public static class | DateControl.
The parameter object passed to the context menu callback for entries. |
| public static class | DateControl.
The parameter object passed to the entry details callback. |
| public static class | DateControl.
The parameter object passed to the entry details popover content callback. |
| public static class | DateControl.
Class used for parameter of |
| public static enum | |
| public static enum | DateControl.
Supported layout strategies by the |
| public static enum |
| Access | Constructor and Description |
|---|---|
| protected | DateControl()
Constructs a new date control and initializes all factories and callbacks with default implementations. |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the background calendar used for this viewA background calendar used to display "availability" of a resource. |
| public final ObjectProperty | Returns: the color used for filling "unavailable" time slotsThe color used for drawing the availability background information behind the calendar entries. |
| public final ObjectProperty | Returns: the availability calendar grid sizeDefines 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 | Returns: the calendar source factoryA factory for creating a new calendar source, e.g. a new Google calendar account. |
| public final ReadOnlyListProperty | Returns: the list of all calendars shown by this controlA list that contains all calendars found in all calendar sources currently attached to this date control. |
| public final void | |
| public final ObjectProperty | Returns: the context menu callbackThe 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 createdthe 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 createdthe 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 createdthe 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 initiallyHidden)Entry#setHidden(boolean).Creates a new entry at the given time. |
| public IntegerProperty | Returns: the number of mouse clicks required for creating a new entryAn 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 | Returns: the callback for showing details for a given dateA callback used for showing the details of a given date. |
| public final ObjectProperty | Returns: the date shown by the controlThe date that needs to be shown by the date control. |
| public final ObjectProperty | Returns: the default calendar provider callbackThe default calendar provider is responsible for returning a calendar that can be used to add a new entry. |
| public final void | |
| private void | |
| private void | |
| private EntryViewBase | |
| private void | |
| public final ObjectProperty | Returns: the dragged entryStores a |
| public BooleanProperty | Returns: true if the user can edit availabilityA flag used to signal whether the user is allowed to modify the availability calendar. |
| public final void | |
| public final void | |
| public final BooleanProperty | Returns: true if the support for hyperlinks is enabledA 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 enabledEnables or disables user options to work with different time zones. |
| public final ObjectProperty | Returns: the end timeAn end time used to limit the time interval shown by the control. |
| public final ObjectProperty | Returns: the property used for storing the callbackA callback used for dynamically creating a context menu for a given entry view. |
| public final ObjectProperty | Returns: the callback used for showing details for a given entryA callback used for showing the details of a given entry. |
| public final ObjectProperty | Returns: the popover content callbackStores a callback for creating the content of the popover. |
| public final ObjectProperty | Returns: the propertyA property that stores a callback used for editing entries. |
| public final ObjectProperty | Returns: the entry factory callbackA factory for creating new entries when the user double clicks inside the
date control or when the application calls
|
| public final EntryViewBase | Returns: the viewthe entry entry)Finds the first view that represents the given entry. |
| public final Calendar | |
| public final Paint | |
| public final VirtualGrid | |
| public final ObservableList | Returns: the list of available time zone IDsA list of time zones / time zone IDs that will be available to the user in the date controls. |
| public final WeakList | Returns: the bound date controls / sub controls / children controlsReturns all data controls that are bound to this control. |
| public Optional | Returns: the calendar at the given locationthe x-coordinate to check x, double the y-coordinate to check y)Returns the calendar shown at the given location. |
| public final ObservableList | Returns: the list of all calendars shown by this controlReturns the value of |
| public final Callback | Returns: the calendar source factoryReturns the value of |
| public final ObservableList | Returns: the calendar sourcesThe list of all calendar sources attached to this control. |
| public final ObservableMap | |
| public final BooleanProperty | |
| public final Callback | Returns: the context menu callbackReturns the value of |
| public int | |
| public final LocalDate | |
| public final Callback | Returns: the date details callbackReturns the value of |
| public final Callback | Returns: the default calendar providerReturns the value of |
| public final DraggedEntry | |
| public final LocalTime | |
| public final Callback | Returns: the callback for creating a context menu for a given calendar entryReturns the value of |
| public final Callback | Returns: the entry details callbackReturns the value of |
| public final Callback | Returns: the entry details popover content callbackReturns the value of
|
| public final Callback | |
| public final Callback | Returns: the factory used for creating a new entryReturns the value of |
| public final DayOfWeek | Returns: the first day of the weekA convenience method to look up the first day of the week ("Monday" in Germany, "Sunday" in the US). |
| public final DateControl. | |
| public ObservableList | getPropertySheetItems()
Overrides com. Returns a list of property items that can be shown by the
|
| public final LocalTime | |
| public final SelectionMode | Returns: the selection mode (single, multiple)Returns the value of |
| public final ObservableSet | |
| public final LocalTime | |
| public final LocalTime | |
| public final LocalDate | |
| public final Callback | |
| public final VirtualGrid | |
| public ObservableSet | Returns: the weekend daysReturns the days of the week that are considered to be weekend days, for example Saturday and Sunday, or Friday and Saturday. |
| public final WeekFields | |
| public final ZonedDateTime | Returns: the zoned date time version of the current time propertyReturns the zoned date time version of the current time. |
| public final ZoneId | |
| public void | |
| public void | |
| public void | |
| public final boolean | |
| public boolean | |
| public final boolean | Returns: true if the hyperlink support is enabledReturns the value of the |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | Returns: true if today will be highlighted visuallyReturns the value of |
| public final boolean | Returns: true if updates are suspendedReturns the value of |
| public final ObjectProperty | Returns: the layout strategy of the viewStores the strategy used by the view to lay out the entries of several calendars at once. |
| public final void | |
| public final ObjectProperty | Returns: the requested timeStores the time that the application wants to show in its date controls when the UI opens up. |
| public final void | |
| public final ObjectProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | setCalendarSourceFactory(Callback<DateControl.
the callback used for creating a new calendar source callbackSets the value of |
| public final void | |
| public final void | setContextMenuCallback(Callback<DateControl.
the context menu callback callbackSets the value of |
| public void | |
| public final void | |
| public final void | setDateDetailsCallback(Callback<DateControl.
the date details callback callbackSets the value of |
| public final void | setDefaultCalendarProvider(Callback<DateControl, Calendar<T>>
the default calendar provider provider)Sets the value of |
| public final void | |
| public void | |
| public final void | setEnableHyperlinks(boolean
if true the hyperlink support will be enabled enable)Sets the value of the |
| public final void | |
| public final void | |
| public final void | setEntryContextMenuCallback(Callback<DateControl.
the callback used for creating a context menu for a calendar
entry callbackSets the value of |
| public final void | setEntryDetailsCallback(Callback<DateControl.
the entry details callback callbackSets the value of |
| public final void | setEntryDetailsPopOverContentCallback(Callback<DateControl.
the entry details popover content callback callbackSets the value of |
| public final void | setEntryEditPolicy(Callback<DateControl.
the entry edit policy callback policySets the value of |
| public final void | setEntryFactory(Callback<DateControl.
the factory used for creating a new entry factorySets the value of |
| public final void | |
| public final void | |
| public final void | setSelectionMode(SelectionMode
the selection mode (single, multiple) mode)Sets the value of |
| public final void | |
| public final void | |
| public final void | setShowToday(boolean
if true today will be highlighted visually show)Sets the value of |
| public final void | |
| public final void | setSuspendUpdates(boolean
if true updates are suspended suspend)Sets the value of |
| public final void | |
| public final void | |
| public final void | setUsagePolicy(Callback<Integer, DateControl.
the new usage policy policySets the value of |
| public final void | |
| public final void | |
| public final void | |
| public void | showDateDetails(Node
the owner node owner, LocalDate the date for which to display more detail date)Creates a new |
| public final BooleanProperty | Returns: true if the date control shows a dialog immediately after a new entry was added by the userDetermines if the |
| public final void | |
| private void | |
| public final BooleanProperty | Returns: true if noon will be marked in a special wayA 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 differentlyA flag used to indicate that the view will mark the area that represents
the value of |
| public final ObjectProperty | Returns: the start timeA start time used to limit the time interval shown by the control. |
| public final BooleanProperty | Returns: true if updates are suspendedA property that will suspend all updates to the view based on model changes. |
| public final ObjectProperty | Returns: the current timeStores a time that can be visualized, e.g. the thin line in
|
| public final ObjectProperty | Returns: the date representing "today"Stores the date that is considered to represent "today". |
| public final void | |
| public final void | |
| private void | |
| public final ObjectProperty | Returns: the usage policyA 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 | Returns: the virtual gridA virtual grid used for snapping to invisible grid lines while editing calendar entries. |
| public final ObservableSet | |
| public final ObjectProperty | Returns: the week fieldsWeek fields are used to determine the first day of a week (e.g. "Monday" in Germany or "Sunday" in the US). |
| public final ObjectProperty | Returns: the time zone used by the date control for calculating entry view layoutsThe time zone used by the date control. |