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 Details

    • sunWeekendDaysCountries

      private static final List<String> sunWeekendDaysCountries
    • fryWeekendDaysCountries

      private static final List<String> fryWeekendDaysCountries
    • frySunWeekendDaysCountries

      private static final List<String> frySunWeekendDaysCountries
    • thuFryWeekendDaysCountries

      private static final List<String> thuFryWeekendDaysCountries
    • frySatWeekendDaysCountries

      private static final List<String> frySatWeekendDaysCountries
    • simpleDateFormat

      private SimpleDateFormat simpleDateFormat
    • calendarRangeCallbackAtomicInteger

      protected final AtomicInteger calendarRangeCallbackAtomicInteger
  • Constructor Details

    • CalendarPickerMonthlySkinAbstract

      public CalendarPickerMonthlySkinAbstract(CalendarPicker control)
  • Method Details

    • construct

      private void construct()
    • refreshLocale

      private void refreshLocale()
    • refresh

      protected abstract void refresh()
    • calendarRangeCallback

      protected void calendarRangeCallback()
    • periodStartCalendar

      protected Calendar periodStartCalendar()
      Returns:
    • periodEndCalendar

      protected Calendar periodEndCalendar()
      Returns:
    • getWeekdayLabels

      protected List<String> 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

      protected List<Integer> getWeeknumbers()
      Get a list with the weeklabels
    • getMonthLabels

      protected List<String> 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

      protected boolean isToday(Calendar calendar)
      determine if a date is today