Module jfxtras.controls
Class CalendarPickerMonthlySkinAbstract<S>
java.lang.Object
javafx.scene.control.SkinBase<CalendarPicker>
jfxtras.internal.scene.control.skin.CalendarPickerMonthlySkinAbstract<S>
- Type Parameters:
S
- the actual skin class, so fluent methods return the correct class (see "return (S)this;")
- All Implemented Interfaces:
javafx.scene.control.Skin<CalendarPicker>
- Direct Known Subclasses:
CalendarPickerControlSkin
public abstract class CalendarPickerMonthlySkinAbstract<S>
extends javafx.scene.control.SkinBase<CalendarPicker>
This class contains common code to support skins that shows a month at once.
It assumes that there is a grid of clickables, one for every day of the month, and provides methods to help handle these.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private void
protected int
determine the number of days in the monthprotected int
determine on which day of week idx is the first of the monthget the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendarget the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendarGet a list with the weeklabelsprotected boolean
determine if a date is todayprotected boolean
isWeekday
(int idx, int weekdaynr) check if a certain weekday name is a certain day-of-the-weekprotected boolean
isWeekdayWeekend
(int idx) check if a certain weekday name is a certain day-of-the-weekprotected Calendar
protected Calendar
protected abstract void
refresh()
private void
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Field Details
-
sunWeekendDaysCountries
-
fryWeekendDaysCountries
-
frySunWeekendDaysCountries
-
thuFryWeekendDaysCountries
-
frySatWeekendDaysCountries
-
simpleDateFormat
-
calendarRangeCallbackAtomicInteger
-
-
Constructor Details
-
CalendarPickerMonthlySkinAbstract
-
-
Method Details
-
construct
private void construct() -
refreshLocale
private void refreshLocale() -
refresh
protected abstract void refresh() -
calendarRangeCallback
protected void calendarRangeCallback() -
periodStartCalendar
- Returns:
-
periodEndCalendar
- Returns:
-
getWeekdayLabels
get the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendar -
getWeeknumbers
Get a list with the weeklabels -
getMonthLabels
get the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendar -
isWeekday
protected boolean isWeekday(int idx, int weekdaynr) check if a certain weekday name is a certain day-of-the-week -
isWeekdayWeekend
protected boolean isWeekdayWeekend(int idx) check if a certain weekday name is a certain day-of-the-week -
determineFirstOfMonthDayOfWeek
protected int determineFirstOfMonthDayOfWeek()determine on which day of week idx is the first of the month -
determineDaysInMonth
protected int determineDaysInMonth()determine the number of days in the month -
isToday
determine if a date is today
-