Top Inners Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class CalendarViewSkin

extends SkinBase<CalendarView>
Class Inheritance
Imports
com.dlsc.gemsfx.CalendarView, .CalendarView.DateCell, .CalendarView.SelectionModel, .Spacer, .YearMonthView, .YearView, javafx.beans.InvalidationListener, .Observable, .WeakInvalidationListener, javafx.beans.binding.Bindings, javafx.beans.property.ObjectProperty, .SimpleObjectProperty, javafx.beans.value.ChangeListener, .WeakChangeListener, javafx.css.PseudoClass, javafx.geometry.HPos, javafx.scene.Scene, javafx.scene.control.Button, .Label, .SkinBase, javafx.scene.input.KeyCode, .KeyEvent, .MouseEvent, .TouchEvent, javafx.scene.layout.ColumnConstraints, .GridPane, .HBox, .Region, .RowConstraints, .StackPane, .VBox, javafx.scene.shape.Rectangle, javafx.stage.Window, javafx.util.Callback, java.time.DayOfWeek, .LocalDate, .Year, .YearMonth, java.time.format.TextStyle, java.time.temporal.WeekFields, java.util.HashMap, .Locale, .Map, .Objects, .Optional

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private final GridPane
private final Map<String, CalendarView.DateCell>
private final VBox
private final Label[]
private YearMonth
private static final PseudoClass
private static final PseudoClass
private static final PseudoClass
private final Label
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final InvalidationListener
private final ObjectProperty<CalendarViewSkin.ViewMode>
private final WeakInvalidationListener
private final WeakChangeListener<T>
private static final String
private final GridPane
private static final String
private final Label[]
private final ChangeListener<Boolean>
private final ChangeListener<Year>
private final Label
private final ChangeListener<YearMonth>
private final YearMonthView
private final YearView

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private LocalDate
private void
private void
protected ColumnConstraints

Returns:

the column constraints for the given column
createColumnConstraints
(int
the number of total columns (either 7 or 8)
numberOfColumns
,
int
the index of the column for which to create the constraints, -1 indicates the column used for showing the "week of year" numbers
columnIndex
)

Creates the constraints for the given column.

protected RowConstraints

Returns:

the row constraints for the given row
createRowConstraints
(int
the index of the row for which to create constraints, -1 indicates the row used for showing the "weekday name"
row
)

Creates the constraints for the given row.

private DayOfWeek
private String
getKey(int row, int col)

private LocalDate
private WeekFields
private void
private void
private void
updateHeader(HBox header, StackPane previousArrowButton, Spacer leftSpacer, VBox yearSpinnerBox, Spacer rightSpacer, StackPane nextMonthArrowButton)

private void
private void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutChildrenlayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

bodyGridPaneback to summary
private final GridPane bodyGridPane
cellsMapback to summary
private final Map<String, CalendarView.DateCell> cellsMap
containerback to summary
private final VBox container
dayOfWeekLabelsback to summary
private final Label[] dayOfWeekLabels
displayedYearMonthback to summary
private YearMonth displayedYearMonth
HEADER_CENTER_PSEUDO_CLASSback to summary
private static final PseudoClass HEADER_CENTER_PSEUDO_CLASS
HEADER_LEFT_PSEUDO_CLASSback to summary
private static final PseudoClass HEADER_LEFT_PSEUDO_CLASS
HEADER_RIGHT_PSEUDO_CLASSback to summary
private static final PseudoClass HEADER_RIGHT_PSEUDO_CLASS
monthLabelback to summary
private final Label monthLabel
NEXT_MONTHback to summary
private static final String NEXT_MONTH
PREVIOUS_MONTHback to summary
private static final String PREVIOUS_MONTH
RANGE_DATEback to summary
private static final String RANGE_DATE
RANGE_END_DATEback to summary
private static final String RANGE_END_DATE
RANGE_START_DATEback to summary
private static final String RANGE_START_DATE
SELECTEDback to summary
private static final String SELECTED
TODAYback to summary
private static final String TODAY
updateViewListenerback to summary
private final InvalidationListener updateViewListener
viewModeback to summary
private final ObjectProperty<CalendarViewSkin.ViewMode> viewMode
weakUpdateViewListenerback to summary
private final WeakInvalidationListener weakUpdateViewListener
weakWindowShowingListenerback to summary
private final WeakChangeListener<T> weakWindowShowingListener
WEEKDAY_NAMEback to summary
private static final String WEEKDAY_NAME
weekdayGridPaneback to summary
private final GridPane weekdayGridPane
WEEKEND_DAYback to summary
private static final String WEEKEND_DAY
weekNumberLabelsback to summary
private final Label[] weekNumberLabels
windowShowingListenerback to summary
private final ChangeListener<Boolean> windowShowingListener
yearChangeListenerback to summary
private final ChangeListener<Year> yearChangeListener
yearLabelback to summary
private final Label yearLabel
yearMonthChangeListenerback to summary
private final ChangeListener<YearMonth> yearMonthChangeListener
yearMonthViewback to summary
private final YearMonthView yearMonthView
yearViewback to summary
private final YearView yearView

Constructor Detail

CalendarViewSkinback to summary
public CalendarViewSkin(CalendarView view)

Method Detail

adjustToFirstDayOfWeekback to summary
private LocalDate adjustToFirstDayOfWeek(LocalDate date, DayOfWeek firstDayOfWeek)
bindSelectionModelback to summary
private void bindSelectionModel(CalendarView.SelectionModel model)
buildViewback to summary
private void buildView()
createColumnConstraintsback to summary
protected ColumnConstraints createColumnConstraints(int numberOfColumns, int columnIndex)

Creates the constraints for the given column. The total number of columns can vary, depending on whether the week number column is shown or not.

Parameters
numberOfColumns:int

the number of total columns (either 7 or 8)

columnIndex:int

the index of the column for which to create the constraints, -1 indicates the column used for showing the "week of year" numbers

Returns:ColumnConstraints

the column constraints for the given column

createRowConstraintsback to summary
protected RowConstraints createRowConstraints(int row)

Creates the constraints for the given row.

Parameters
row:int

the index of the row for which to create constraints, -1 indicates the row used for showing the "weekday name"

Returns:RowConstraints

the row constraints for the given row

getFirstDayOfWeekback to summary
private DayOfWeek getFirstDayOfWeek()
getKeyback to summary
private String getKey(int row, int col)
getStartDateback to summary
private LocalDate getStartDate()
getWeekFieldsback to summary
private WeekFields getWeekFields()
installSelectionSupportback to summary
private void installSelectionSupport(CalendarView.DateCell cell)
updateBodyConstraintsback to summary
private void updateBodyConstraints()
updateHeaderback to summary
private void updateHeader(HBox header, StackPane previousArrowButton, Spacer leftSpacer, VBox yearSpinnerBox, Spacer rightSpacer, StackPane nextMonthArrowButton)
updateStyleClassesback to summary
private void updateStyleClasses()
updateViewback to summary
private void updateView()
updateViewModeback to summary
private void updateViewMode()
com.dlsc.gemsfx.skins back to summary

private final Enum CalendarViewSkin.ViewMode

extends Enum<CalendarViewSkin.ViewMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final CalendarViewSkin.ViewMode
public static final CalendarViewSkin.ViewMode
public static final CalendarViewSkin.ViewMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CalendarViewSkin.ViewMode
public static CalendarViewSkin.ViewMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DATEback to summary
public static final CalendarViewSkin.ViewMode DATE
MONTHback to summary
public static final CalendarViewSkin.ViewMode MONTH
YEARback to summary
public static final CalendarViewSkin.ViewMode YEAR

Constructor Detail

ViewModeback to summary
private ViewMode()

Method Detail

valueOfback to summary
public static CalendarViewSkin.ViewMode valueOf(String name)
valuesback to summary
public static CalendarViewSkin.ViewMode[] values()