WeekDayView on the fly as needed. Another factory
is required for creating the child control AllDayView. The image
below shows the appearance of this view when it is embedded inside the
DetailedWeekView.
| Modifier and Type | Class and Description |
|---|---|
| public static class | WeekView.
The parameter object for the week day view factory. |
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private static final String | |
| private final ReadOnlyObjectWrapper | |
| private final IntegerProperty | |
| private final ObjectProperty | |
| private final ReadOnlyObjectWrapper | |
| private static final String | |
| private final ObjectProperty | |
| private final ObservableList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | WeekView(int
the number of days (day views) numberOfDays)Constructs a new week view with the given number of days. |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | Returns: true if the view always shows the first day of the weekA flag used to indicate that the view should always show the first day of
the week (e.g. "Monday") at its beginning even if the
|
| private LocalDate | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ReadOnlyObjectProperty | |
| public final LocalDate | |
| public final int | Returns: the number of days shown by the viewReturns the value of |
| public ObservableList | getPropertySheetItems()
Overrides com. Returns a list of property items that can be shown by the
|
| public final Callback | |
| public final LocalDate | |
| private WeekDayView | |
| public final Callback | Returns: the week day view factoryReturns the value of |
| public final ObservableList | Returns: the currently used list of week day views (please note that this list is very volatile and will be updated very often.A list of the |
| public ZonedDateTime | getZonedDateTimeAt(double
the x coordinate of the input event x, double the y coordinate of the input event y, ZoneId the zoneID for which we query the time zoneId)Overrides com. Implements com. Returns the time at the given location. |
| public final boolean | Returns: true if the view always shows the first day of the weekReturns the value of |
| public final IntegerProperty | Returns: the number of days shown by the viewStores the number of days that will be shown by this view. |
| public final ObjectProperty | Returns: the separator factoryA factory used for creating (optional) vertical separators between the week days. |
| public final void | setAdjustToFirstDayOfWeek(boolean
if true the view will always show the first day of the week adjust)Sets the value of |
| public final void | setNumberOfDays(int
the new number of days shown by the view number)Sets the value of |
| public final void | |
| public final void | setWeekDayViewFactory(Callback<WeekView.
the new factory factorySets the value of |
| public final ReadOnlyObjectProperty | |
| private void | |
| public final ObjectProperty | Returns: the week day view factoryA factory used for creating instances of |
| adjustToFirstDayOfWeek | back to summary |
|---|---|
| private final BooleanProperty adjustToFirstDayOfWeek | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| endDate | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<LocalDate> endDate | |
| numberOfDays | back to summary |
|---|---|
| private final IntegerProperty numberOfDays | |
| separatorFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<WeekView, Region>> separatorFactory | |
| startDate | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<LocalDate> startDate | |
| WEEK_VIEW_CATEGORY | back to summary |
|---|---|
| private static final String WEEK_VIEW_CATEGORY | |
| weekDayViewFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<WeekView. | |
| weekDayViews | back to summary |
|---|---|
| private final ObservableList<WeekDayView> weekDayViews | |
| WeekView | back to summary |
|---|---|
| public WeekView() Constructs a new week view with seven days. | |
| WeekView | back to summary |
|---|---|
| public WeekView(int numberOfDays) Constructs a new week view with the given number of days.
| |
| adjustToFirstDayOfWeekProperty | back to summary |
|---|---|
| public final BooleanProperty adjustToFirstDayOfWeekProperty() A flag used to indicate that the view should always show the first day of
the week (e.g. "Monday") at its beginning even if the
| |
| calculateStartDate | back to summary |
|---|---|
| private LocalDate calculateStartDate() | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS | |
| endDateProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty The latest date shown by the view.
| |
| getEndDate | back to summary |
|---|---|
| public final LocalDate getEndDate() Returns the value of
| |
| getNumberOfDays | back to summary |
|---|---|
| public final int getNumberOfDays() Returns the value of
| |
| getPropertySheetItems | back to summary |
|---|---|
| public ObservableList Overrides com. Doc from com. Returns a list of property items that can be shown by the
| |
| getSeparatorFactory | back to summary |
|---|---|
| public final Callback | |
| getStartDate | back to summary |
|---|---|
| public final LocalDate getStartDate() Returns the value of
| |
| getWeekDayViewAt | back to summary |
|---|---|
| private WeekDayView getWeekDayViewAt(double x) | |
| getWeekDayViewFactory | back to summary |
|---|---|
| public final Callback Returns the value of
| |
| getWeekDayViews | back to summary |
|---|---|
| public final ObservableList A list of the
| |
| getZonedDateTimeAt | back to summary |
|---|---|
| public ZonedDateTime getZonedDateTimeAt(double x, double y, ZoneId zoneId) Overrides com. Implements com. Doc from com. Returns the time at the given location.
| |
| isAdjustToFirstDayOfWeek | back to summary |
|---|---|
| public final boolean isAdjustToFirstDayOfWeek() Returns the value of
| |
| numberOfDaysProperty | back to summary |
|---|---|
| public final IntegerProperty numberOfDaysProperty() Stores the number of days that will be shown by this view. This value
will be 1 if the view is used in combination with the
| |
| separatorFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty A factory used for creating (optional) vertical separators between the week days.
| |
| setAdjustToFirstDayOfWeek | back to summary |
|---|---|
| public final void setAdjustToFirstDayOfWeek(boolean adjust) Sets the value of
| |
| setNumberOfDays | back to summary |
|---|---|
| public final void setNumberOfDays(int number) Sets the value of
| |
| setSeparatorFactory | back to summary |
|---|---|
| public final void setSeparatorFactory(Callback<WeekView, Region> separatorFactory) | |
| setWeekDayViewFactory | back to summary |
|---|---|
| public final void setWeekDayViewFactory(Callback<WeekView. Sets the value of
| |
| startDateProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty The earliest date shown by the view.
| |
| updateStartAndEndDates | back to summary |
|---|---|
| private void updateStartAndEndDates() | |
| weekDayViewFactoryProperty | back to summary |
|---|---|
| public final ObjectProperty A factory used for creating instances of
| |
weekDayViewFactoryProperty()
| Access | Constructor and Description |
|---|---|
| public | WeekDayParameter(WeekView
the week view for which the week day view will be used weekView)Constructs a new parameter object. |
| Modifier and Type | Method and Description |
|---|---|
| public WeekView |
| weekView | back to summary |
|---|---|
| private final WeekView weekView | |
| WeekDayParameter | back to summary |
|---|---|
| public WeekDayParameter(WeekView weekView) Constructs a new parameter object.
| |
| getWeekView | back to summary |
|---|---|
| public WeekView getWeekView() Returns the week view where the day view will be used.
| |