Class CalendarViewSkin
java.lang.Object
javafx.scene.control.SkinBase<CalendarView>
- All Implemented Interfaces:
javafx.scene.control.Skin<CalendarView>
Skin for the
CalendarView control.
The skin builds a header with month and year navigation, weekday and week number rows, and date cells backed by the control selection model. It also switches to embedded month or year selection views when enabled by the control.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarViewSkin(CalendarView view) Creates a skin for the given calendar view. -
Method Summary
Modifier and TypeMethodDescriptionprotected javafx.scene.layout.ColumnConstraintscreateColumnConstraints(int numberOfColumns, int columnIndex) Creates the constraints for the given column.protected javafx.scene.layout.RowConstraintscreateRowConstraints(int row) Creates the constraints for the given row.Methods inherited from class GemsSkinBase
dispose, register, register, register, register, registerFilter, registerHandlerMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, 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
-
Constructor Details
-
CalendarViewSkin
Creates a skin for the given calendar view.- Parameters:
view- the calendar view rendered by this skin
-
-
Method Details
-
createColumnConstraints
protected javafx.scene.layout.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- the number of total columns (either 7 or 8)columnIndex- the index of the column for which to create the constraints, -1 indicates the column used for showing the "week of year" numbers- Returns:
- the column constraints for the given column
-
createRowConstraints
protected javafx.scene.layout.RowConstraints createRowConstraints(int row) Creates the constraints for the given row.- Parameters:
row- the index of the row for which to create constraints, -1 indicates the row used for showing the "weekday name"- Returns:
- the row constraints for the given row
-