- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
,javafx.scene.control.Skinnable
java.time.chrono
package.
- The
value
property represents the currently selectedLocalDate
. The default value is null. - The
chronology
property specifies a calendar system to be used for parsing, displaying, and choosing dates. - The
value
property is always defined in the ISO calendar system, however, so applications based on a different chronology may use the conversion methods provided in theChronology
API to get or set the correspondingChronoLocalDate
value.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty
<javafx.scene.Node> Represents the custom node to be placed at the bottom of the Calendar below the day-cell grid.javafx.beans.property.ObjectProperty
<Chronology> The calendar system used for parsing, displaying, and choosing dates in the Calendar control.final javafx.beans.property.ObjectProperty
<javafx.util.Callback<Calendar, javafx.scene.control.DateCell>> A custom cell factory can be provided to customize individual day cells Refer toDateCell
andCell
for more information on cell factories.final javafx.beans.property.BooleanProperty
Whether the Calendar should display a column showing week numbers.javafx.beans.property.ObjectProperty
<javafx.scene.Node> Represents the custom node to be placed at the top of the Calendar above the month-year area.javafx.beans.property.ObjectProperty
<LocalDate> Represents the currently selectedLocalDate
.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Parent
needsLayout
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
FieldsFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty
<javafx.scene.Node> Represents the custom node to be placed at the bottom of the Calendar below the day-cell grid.javafx.beans.property.ObjectProperty
<Chronology> The calendar system used for parsing, displaying, and choosing dates in the Calendar control.protected javafx.scene.control.Skin
<?> final javafx.beans.property.ObjectProperty
<javafx.util.Callback<Calendar, javafx.scene.control.DateCell>> A custom cell factory can be provided to customize individual day cells Refer toDateCell
andCell
for more information on cell factories.final javafx.scene.Node
Gets the value of thebottomNode
property.final Chronology
Gets the value of thechronology
property.static List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> final javafx.util.Callback
<Calendar, javafx.scene.control.DateCell> Gets the value of thedayCellFactory
property.final javafx.scene.Node
Gets the value of thetopNode
property.final LocalDate
getValue()
Gets the value of thevalue
property.final boolean
Gets the value of theshowWeekNumbers
property.final void
setBottomNode
(javafx.scene.Node value) Sets the value of thebottomNode
property.final void
setChronology
(Chronology value) Sets the value of thechronology
property.final void
setDayCellFactory
(javafx.util.Callback<Calendar, javafx.scene.control.DateCell> value) Sets the value of thedayCellFactory
property.final void
setShowWeekNumbers
(boolean value) Sets the value of theshowWeekNumbers
property.final void
setTopNode
(javafx.scene.Node value) Sets the value of thetopNode
property.final void
Sets the value of thevalue
property.final javafx.beans.property.BooleanProperty
Whether the Calendar should display a column showing week numbers.javafx.beans.property.ObjectProperty
<javafx.scene.Node> Represents the custom node to be placed at the top of the Calendar above the month-year area.javafx.beans.property.ObjectProperty
<LocalDate> Represents the currently selectedLocalDate
.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
value
-
dayCellFactory
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<Calendar,javafx.scene.control.DateCell>> dayCellFactoryPropertyA custom cell factory can be provided to customize individual day cells Refer toDateCell
andCell
for more information on cell factories.- See Also:
-
chronology
The calendar system used for parsing, displaying, and choosing dates in the Calendar control.The default is usually
IsoChronology
unless provided explicitly in theLocale
by use of a Locale calendar extension.Setting the value to
null
will restore the default chronology.- See Also:
-
showWeekNumbers
public final javafx.beans.property.BooleanProperty showWeekNumbersPropertyWhether the Calendar should display a column showing week numbers.The default value is specified in a resource bundle, and depends on the country of the current locale.
- See Also:
-
topNode
public javafx.beans.property.ObjectProperty<javafx.scene.Node> topNodePropertyRepresents the custom node to be placed at the top of the Calendar above the month-year area.- See Also:
-
bottomNode
public javafx.beans.property.ObjectProperty<javafx.scene.Node> bottomNodePropertyRepresents the custom node to be placed at the bottom of the Calendar below the day-cell grid.- See Also:
-
-
Field Details
-
lastValidDate
-
lastValidChronology
-
-
Constructor Details
-
Calendar
public Calendar()Creates a default Calendar instance with anull
date value set. -
Calendar
-
-
Method Details
-
createDefaultSkin
protected javafx.scene.control.Skin<?> createDefaultSkin()- Overrides:
createDefaultSkin
in classjavafx.scene.control.Control
-
valueProperty
-
getValue
-
setValue
-
setDayCellFactory
public final void setDayCellFactory(javafx.util.Callback<Calendar, javafx.scene.control.DateCell> value) Sets the value of thedayCellFactory
property.- Property description:
- A custom cell factory can be provided to customize individual day cells
Refer to
DateCell
andCell
for more information on cell factories. - Parameters:
value
- the value for thedayCellFactory
property- See Also:
-
getDayCellFactory
Gets the value of thedayCellFactory
property.- Property description:
- A custom cell factory can be provided to customize individual day cells
Refer to
DateCell
andCell
for more information on cell factories. - Returns:
- the value of the
dayCellFactory
property - See Also:
-
dayCellFactoryProperty
public final javafx.beans.property.ObjectProperty<javafx.util.Callback<Calendar,javafx.scene.control.DateCell>> dayCellFactoryProperty()A custom cell factory can be provided to customize individual day cells Refer toDateCell
andCell
for more information on cell factories.- Returns:
- the
dayCellFactory
property - See Also:
-
chronologyProperty
The calendar system used for parsing, displaying, and choosing dates in the Calendar control.The default is usually
IsoChronology
unless provided explicitly in theLocale
by use of a Locale calendar extension.Setting the value to
null
will restore the default chronology.- Returns:
- a property representing the Chronology being used
- See Also:
-
getChronology
Gets the value of thechronology
property.- Property description:
- The calendar system used for parsing, displaying, and choosing dates in the
Calendar control.
The default is usually
IsoChronology
unless provided explicitly in theLocale
by use of a Locale calendar extension.Setting the value to
null
will restore the default chronology. - Returns:
- the value of the
chronology
property - See Also:
-
setChronology
Sets the value of thechronology
property.- Property description:
- The calendar system used for parsing, displaying, and choosing dates in the
Calendar control.
The default is usually
IsoChronology
unless provided explicitly in theLocale
by use of a Locale calendar extension.Setting the value to
null
will restore the default chronology. - Parameters:
value
- the value for thechronology
property- See Also:
-
showWeekNumbersProperty
public final javafx.beans.property.BooleanProperty showWeekNumbersProperty()Whether the Calendar should display a column showing week numbers.The default value is specified in a resource bundle, and depends on the country of the current locale.
- Returns:
- "true" if popup should display a column showing week numbers
- See Also:
-
setShowWeekNumbers
public final void setShowWeekNumbers(boolean value) Sets the value of theshowWeekNumbers
property.- Property description:
- Whether the Calendar should display a column showing week numbers.
The default value is specified in a resource bundle, and depends on the country of the current locale.
- Parameters:
value
- the value for theshowWeekNumbers
property- See Also:
-
isShowWeekNumbers
public final boolean isShowWeekNumbers()Gets the value of theshowWeekNumbers
property.- Property description:
- Whether the Calendar should display a column showing week numbers.
The default value is specified in a resource bundle, and depends on the country of the current locale.
- Returns:
- the value of the
showWeekNumbers
property - See Also:
-
topNodeProperty
public javafx.beans.property.ObjectProperty<javafx.scene.Node> topNodeProperty()Represents the custom node to be placed at the top of the Calendar above the month-year area.- Returns:
- the
topNode
property - See Also:
-
setTopNode
public final void setTopNode(javafx.scene.Node value) Sets the value of thetopNode
property.- Property description:
- Represents the custom node to be placed at the top of the Calendar above the month-year area.
- Parameters:
value
- the value for thetopNode
property- See Also:
-
getTopNode
public final javafx.scene.Node getTopNode()Gets the value of thetopNode
property.- Property description:
- Represents the custom node to be placed at the top of the Calendar above the month-year area.
- Returns:
- the value of the
topNode
property - See Also:
-
bottomNodeProperty
public javafx.beans.property.ObjectProperty<javafx.scene.Node> bottomNodeProperty()Represents the custom node to be placed at the bottom of the Calendar below the day-cell grid.- Returns:
- the
bottomNode
property - See Also:
-
setBottomNode
public final void setBottomNode(javafx.scene.Node value) Sets the value of thebottomNode
property.- Property description:
- Represents the custom node to be placed at the bottom of the Calendar below the day-cell grid.
- Parameters:
value
- the value for thebottomNode
property- See Also:
-
getBottomNode
public final javafx.scene.Node getBottomNode()Gets the value of thebottomNode
property.- Property description:
- Represents the custom node to be placed at the bottom of the Calendar below the day-cell grid.
- Returns:
- the value of the
bottomNode
property - See Also:
-
getClassCssMetaData
Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. -
getControlCssMetaData
- Overrides:
getControlCssMetaData
in classjavafx.scene.control.Control
-