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.
Author:
Tom Eugelink
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final AtomicInteger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected int
    determine the number of days in the month
    protected int
    determine on which day of week idx is the first of the month
    protected List<String>
    get the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendar
    protected List<String>
    get the weekday labels starting with the weekday that is the first-day-of-the-week according to the locale in the displayed calendar
    protected List<Integer>
    Get a list with the weeklabels
    protected boolean
    isToday(Calendar calendar)
    determine if a date is today
    protected boolean
    isWeekday(int idx, int weekdaynr)
    check if a certain weekday name is a certain day-of-the-week
    protected boolean
    check if a certain weekday name is a certain day-of-the-week
    protected Calendar
     
    protected Calendar
     
    protected abstract 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • calendarRangeCallbackAtomicInteger

      protected final AtomicInteger calendarRangeCallbackAtomicInteger
  • Constructor Details

    • CalendarPickerMonthlySkinAbstract

      public CalendarPickerMonthlySkinAbstract(CalendarPicker control)
  • Method Details

    • 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