java.lang.Object
javafx.scene.control.SkinBase<MFXTextField>
io.github.palexdev.materialfx.skins.MFXTextFieldSkin
io.github.palexdev.materialfx.skins.MFXDatePickerSkin
- All Implemented Interfaces:
Skin<MFXTextField>
Skin associated with every
MFXDatePicker by default.
Extends MFXTextFieldSkin and adds the necessary properties, components, listeners
and bindings to build the date picker.
GridPane which shows
the days of the current selected month. The month/year selection is controlled by a pair of MFXComboBox
and arrows.
The grid is 6x7 (rows x columns). The first row contains the week days, the other rows contain the days. To make it as efficient as possible both the week days and the days cells are cached. The cells are just updated when needed.
When the MFXDatePicker.cellFactoryProperty() or the MFXDatePicker.localeProperty() change
a full/partial reset of the cache is needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeResponsible for creating the popup's content.voiddispose()Convenience method to castSkinBase.getSkinnable()toMFXDatePicker.protected voidprotected voidprotected voidupdateValue(LocalDate date) Responsible for updating the date picker's text with the given date.Methods inherited from class io.github.palexdev.materialfx.skins.MFXTextFieldSkin
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefWidth, layoutChildren, updateTextColorMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computePrefHeight, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, 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
-
MFXDatePickerSkin
-
-
Method Details
-
initialize
protected void initialize() -
setBehavior
protected void setBehavior() -
updateValue
Responsible for updating the date picker's text with the given date.The date is converted using the date picker's
MFXDatePicker.converterSupplierProperty(). In case it's null uses toString().The caret is always positioned at the end of the text after the update.
-
createPopupContent
Responsible for creating the popup's content. -
getDatePicker
Convenience method to castSkinBase.getSkinnable()toMFXDatePicker. -
dispose
public void dispose()- Specified by:
disposein interfaceSkin<MFXTextField>- Overrides:
disposein classSkinBase<MFXTextField>
-