Top Description Fields Constructors Methods
com.calendarfx.view

public Class YearView

extends DateControl
Class Inheritance
Imports
impl.com.calendarfx.view.YearViewSkin, javafx.beans.property.ReadOnlyObjectProperty, .ReadOnlyObjectWrapper, javafx.scene.control.Skin, javafx.util.Callback, java.time.Month, .Year, java.util.HashMap, .Map

A view that shows exactly twelve months of a year via the help of the YearMonthView control. The image below shows the year view with usage coloring enabled.

Screenshot

Year View
See Also
YearMonthView#setShowUsageColors(boolean), DateControl#setUsagePolicy(Callback)

Field Summary

Modifier and TypeField and Description
private static final String
private final Map<Month, YearMonthView>
private final ReadOnlyObjectWrapper<Year>
Inherited from com.calendarfx.view.DateControl:
usagePolicy

Constructor Summary

AccessConstructor and Description
public
YearView()

Constructs a new year view.

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final YearMonthView

Returns:

a view for the given month
getMonthView
(Month
the month
month
)

Returns the view that is used for displaying the given month of the year.

public final Year

Returns:

the year
getYear
()

Returns the value of yearProperty().

public final ReadOnlyObjectProperty<Year>

Returns:

the year and month
yearProperty
()

Reports the year shown by the control.

Inherited from com.calendarfx.view.DateControl:
availabilityCalendarPropertyavailabilityFillPropertyavailabilityGridPropertybindcalendarSourceFactoryPropertycalendarsPropertyclearSelectioncontextMenuCallbackPropertycreateCalendarSourcecreateEntryAtcreateEntryAtcreateEntryAtcreateEntryClickCountPropertydateDetailsCallbackPropertydatePropertydefaultCalendarProviderPropertydeselectdraggedEntryPropertyeditAvailabilityPropertyeditEntryeditEntryenableHyperlinksPropertyenableTimeZoneSupportPropertyendTimePropertyentryContextMenuCallbackPropertyentryDetailsCallbackPropertyentryDetailsPopOverContentCallbackPropertyentryEditPolicyPropertyentryFactoryPropertyfindEntryViewgetAvailabilityCalendargetAvailabilityFillgetAvailabilityGridgetAvailableZoneIdsgetBoundDateControlsgetCalendarAtgetCalendarsgetCalendarSourceFactorygetCalendarSourcesgetCalendarVisibilityMapgetCalendarVisibilityPropertygetContextMenuCallbackgetCreateEntryClickCountgetDategetDateDetailsCallbackgetDefaultCalendarProvidergetDraggedEntrygetEndTimegetEntryContextMenuCallbackgetEntryDetailsCallbackgetEntryDetailsPopOverContentCallbackgetEntryEditPolicygetEntryFactorygetFirstDayOfWeekgetLayoutgetPropertySheetItemsgetRequestedTimegetSelectionModegetSelectionsgetStartTimegetTimegetTodaygetUsagePolicygetVirtualGridgetWeekendDaysgetWeekFieldsgetZonedDateTimegetZoneIdgoBackgoForwardgoTodayisCalendarVisibleisEditAvailabilityisEnableHyperlinksisEnableTimeZoneSupportisShowDetailsUponEntryCreationisShowNoonMarkerisShowTodayisSuspendUpdateslayoutPropertyrefreshDatarequestedTimePropertyselectselectionModePropertysetAvailabilityCalendarsetAvailabilityFillsetAvailabilityGridsetCalendarSourceFactorysetCalendarVisibilitysetContextMenuCallbacksetCreateEntryClickCountsetDatesetDateDetailsCallbacksetDefaultCalendarProvidersetDraggedEntrysetEditAvailabilitysetEnableHyperlinkssetEnableTimeZoneSupportsetEndTimesetEntryContextMenuCallbacksetEntryDetailsCallbacksetEntryDetailsPopOverContentCallbacksetEntryEditPolicysetEntryFactorysetLayoutsetRequestedTimesetSelectionModesetShowDetailsUponEntryCreationsetShowNoonMarkersetShowTodaysetStartTimesetSuspendUpdatessetTimesetTodaysetUsagePolicysetVirtualGridsetWeekFieldssetZoneIdshowDateDetailsshowDetailsUponEntryCreationPropertyshowEntryshowNoonMarkerPropertyshowTodayPropertystartTimePropertysuspendUpdatesPropertytimePropertytodayPropertyunbindunbindAllusagePolicyPropertyvirtualGridPropertyvisibleLayersPropertyweekFieldsPropertyzoneIdProperty

Field Detail

DEFAULT_STYLE_CLASSback to summary
private static final String DEFAULT_STYLE_CLASS
viewMapback to summary
private final Map<Month, YearMonthView> viewMap
yearback to summary
private final ReadOnlyObjectWrapper<Year> year

Constructor Detail

YearViewback to summary
public YearView()

Constructs a new year view.

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

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 -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

Annotations
@Override
getMonthViewback to summary
public final YearMonthView getMonthView(Month month)

Returns the view that is used for displaying the given month of the year.

Parameters
month:Month

the month

Returns:YearMonthView

a view for the given month

getYearback to summary
public final Year getYear()

Returns the value of yearProperty().

Returns:Year

the year

yearPropertyback to summary
public final ReadOnlyObjectProperty<Year> yearProperty()

Reports the year shown by the control.

Returns:ReadOnlyObjectProperty<Year>

the year and month