Top Description Fields Constructors Methods
com.calendarfx.view

public abstract Class MonthViewBase

extends DateControl
Class Inheritance
Known Direct Subclasses
com.calendarfx.view.YearMonthView, com.calendarfx.view.MonthView
Imports
javafx.beans.property.BooleanProperty, .ReadOnlyObjectProperty, .ReadOnlyObjectWrapper, .SimpleBooleanProperty, javafx.beans.value.ObservableValue, javafx.collections.FXCollections, .ObservableList, .ObservableSet, org.controlsfx.control.PropertySheet.Item, java.time.LocalDate, .YearMonth, java.util.Optional

Common superclass for views showing a month (e.g. MonthView, YearMonthView).

Field Summary

Modifier and TypeField and Description
private static final String
private final ObservableSet<LocalDate>
private final BooleanProperty
private final ReadOnlyObjectWrapper<YearMonth>
Inherited from com.calendarfx.view.DateControl:
usagePolicy

Constructor Summary

AccessConstructor and Description
protected
MonthViewBase()

Constructs a new month view.

Method Summary

Modifier and TypeMethod and Description
public ObservableList<PropertySheet.Item>
getPropertySheetItems()

Overrides com.calendarfx.view.DateControl.getPropertySheetItems.

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

public final ObservableSet<LocalDate>

Returns:

the selected dates
getSelectedDates
()

The selected dates.

public final YearMonth

Returns:

the year and month
getYearMonth
()

Returns the value of yearMonthProperty().

public final boolean

Returns:

true if week numbers will be shown
isShowWeekNumbers
()

Returns the value of showWeekNumbersProperty().

public final void
setShowWeekNumbers(boolean
if true will show week numbers
show
)

Sets the value of showWeekNumbersProperty().

public final BooleanProperty

Returns:

true if week numbers are shown
showWeekNumbersProperty
()

Controls whether the view will show week numbers.

public final ReadOnlyObjectProperty<YearMonth>

Returns:

the year and month
yearMonthProperty
()

Stores the year and month shown by the control.

Inherited from com.calendarfx.view.DateControl:
availabilityCalendarPropertyavailabilityFillPropertyavailabilityGridPropertybindcalendarSourceFactoryPropertycalendarsPropertyclearSelectioncontextMenuCallbackPropertycreateCalendarSourcecreateEntryAtcreateEntryAtcreateEntryAtcreateEntryClickCountPropertydateDetailsCallbackPropertydatePropertydefaultCalendarProviderPropertydeselectdraggedEntryPropertyeditAvailabilityPropertyeditEntryeditEntryenableHyperlinksPropertyenableTimeZoneSupportPropertyendTimePropertyentryContextMenuCallbackPropertyentryDetailsCallbackPropertyentryDetailsPopOverContentCallbackPropertyentryEditPolicyPropertyentryFactoryPropertyfindEntryViewgetAvailabilityCalendargetAvailabilityFillgetAvailabilityGridgetAvailableZoneIdsgetBoundDateControlsgetCalendarAtgetCalendarsgetCalendarSourceFactorygetCalendarSourcesgetCalendarVisibilityMapgetCalendarVisibilityPropertygetContextMenuCallbackgetCreateEntryClickCountgetDategetDateDetailsCallbackgetDefaultCalendarProvidergetDraggedEntrygetEndTimegetEntryContextMenuCallbackgetEntryDetailsCallbackgetEntryDetailsPopOverContentCallbackgetEntryEditPolicygetEntryFactorygetFirstDayOfWeekgetLayoutgetRequestedTimegetSelectionModegetSelectionsgetStartTimegetTimegetTodaygetUsagePolicygetVirtualGridgetWeekendDaysgetWeekFieldsgetZonedDateTimegetZoneIdgoBackgoForwardgoTodayisCalendarVisibleisEditAvailabilityisEnableHyperlinksisEnableTimeZoneSupportisShowDetailsUponEntryCreationisShowNoonMarkerisShowTodayisSuspendUpdateslayoutPropertyrefreshDatarequestedTimePropertyselectselectionModePropertysetAvailabilityCalendarsetAvailabilityFillsetAvailabilityGridsetCalendarSourceFactorysetCalendarVisibilitysetContextMenuCallbacksetCreateEntryClickCountsetDatesetDateDetailsCallbacksetDefaultCalendarProvidersetDraggedEntrysetEditAvailabilitysetEnableHyperlinkssetEnableTimeZoneSupportsetEndTimesetEntryContextMenuCallbacksetEntryDetailsCallbacksetEntryDetailsPopOverContentCallbacksetEntryEditPolicysetEntryFactorysetLayoutsetRequestedTimesetSelectionModesetShowDetailsUponEntryCreationsetShowNoonMarkersetShowTodaysetStartTimesetSuspendUpdatessetTimesetTodaysetUsagePolicysetVirtualGridsetWeekFieldssetZoneIdshowDateDetailsshowDetailsUponEntryCreationPropertyshowEntryshowNoonMarkerPropertyshowTodayPropertystartTimePropertysuspendUpdatesPropertytimePropertytodayPropertyunbindunbindAllusagePolicyPropertyvirtualGridPropertyvisibleLayersPropertyweekFieldsPropertyzoneIdProperty

Field Detail

MONTH_VIEW_CATEGORYback to summary
private static final String MONTH_VIEW_CATEGORY
selectedDatesback to summary
private final ObservableSet<LocalDate> selectedDates
showWeeksback to summary
private final BooleanProperty showWeeks
yearMonthback to summary
private final ReadOnlyObjectWrapper<YearMonth> yearMonth

Constructor Detail

MonthViewBaseback to summary
protected MonthViewBase()

Constructs a new month view.

Method Detail

getPropertySheetItemsback to summary
public ObservableList<PropertySheet.Item> getPropertySheetItems()

Overrides com.calendarfx.view.DateControl.getPropertySheetItems.

Doc from com.calendarfx.view.CalendarFXControl.getPropertySheetItems.

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

Returns:ObservableList<PropertySheet.Item>

the property sheet items

Annotations
@Override
getSelectedDatesback to summary
public final ObservableSet<LocalDate> getSelectedDates()

The selected dates.

Returns:ObservableSet<LocalDate>

the selected dates

getYearMonthback to summary
public final YearMonth getYearMonth()

Returns the value of yearMonthProperty().

Returns:YearMonth

the year and month

isShowWeekNumbersback to summary
public final boolean isShowWeekNumbers()

Returns the value of showWeekNumbersProperty().

Returns:boolean

true if week numbers will be shown

setShowWeekNumbersback to summary
public final void setShowWeekNumbers(boolean show)

Sets the value of showWeekNumbersProperty().

Parameters
show:boolean

if true will show week numbers

showWeekNumbersPropertyback to summary
public final BooleanProperty showWeekNumbersProperty()

Controls whether the view will show week numbers. The image below shows an example (weeks 10, 11, 12 in 2015): Week Numbers

Returns:BooleanProperty

true if week numbers are shown

yearMonthPropertyback to summary
public final ReadOnlyObjectProperty<YearMonth> yearMonthProperty()

Stores the year and month shown by the control.

Returns:ReadOnlyObjectProperty<YearMonth>

the year and month