- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget,javafx.scene.control.Skinnable
java.time.chrono package.
- The
valueproperty represents the currently selectedLocalDate. The default value is null. - The
chronologyproperty specifies a calendar system to be used for parsing, displaying, and choosing dates. - The
valueproperty is always defined in the ISO calendar system, however, so applications based on a different chronology may use the conversion methods provided in theChronologyAPI to get or set the correspondingChronoLocalDatevalue.
-
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 toDateCellandCellfor more information on cell factories.final javafx.beans.property.BooleanPropertyWhether 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, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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_SIZEFields 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 toDateCellandCellfor more information on cell factories.final javafx.scene.NodeGets the value of thebottomNodeproperty.final ChronologyGets the value of thechronologyproperty.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 thedayCellFactoryproperty.final javafx.scene.NodeGets the value of thetopNodeproperty.final LocalDategetValue()Gets the value of thevalueproperty.final booleanGets the value of theshowWeekNumbersproperty.final voidsetBottomNode(javafx.scene.Node value) Sets the value of thebottomNodeproperty.final voidsetChronology(Chronology value) Sets the value of thechronologyproperty.final voidsetDayCellFactory(javafx.util.Callback<Calendar, javafx.scene.control.DateCell> value) Sets the value of thedayCellFactoryproperty.final voidsetShowWeekNumbers(boolean value) Sets the value of theshowWeekNumbersproperty.final voidsetTopNode(javafx.scene.Node value) Sets the value of thetopNodeproperty.final voidSets the value of thevalueproperty.final javafx.beans.property.BooleanPropertyWhether 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, tooltipPropertyMethods 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 toDateCellandCellfor 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
IsoChronologyunless provided explicitly in theLocaleby use of a Locale calendar extension.Setting the value to
nullwill 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 anulldate value set. -
Calendar
-
-
Method Details
-
createDefaultSkin
protected javafx.scene.control.Skin<?> createDefaultSkin()- Overrides:
createDefaultSkinin 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 thedayCellFactoryproperty.- Property description:
- A custom cell factory can be provided to customize individual day cells
Refer to
DateCellandCellfor more information on cell factories. - Parameters:
value- the value for thedayCellFactoryproperty- See Also:
-
getDayCellFactory
Gets the value of thedayCellFactoryproperty.- Property description:
- A custom cell factory can be provided to customize individual day cells
Refer to
DateCellandCellfor more information on cell factories. - Returns:
- the value of the
dayCellFactoryproperty - 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 toDateCellandCellfor more information on cell factories.- Returns:
- the
dayCellFactoryproperty - See Also:
-
chronologyProperty
The calendar system used for parsing, displaying, and choosing dates in the Calendar control.The default is usually
IsoChronologyunless provided explicitly in theLocaleby use of a Locale calendar extension.Setting the value to
nullwill restore the default chronology.- Returns:
- a property representing the Chronology being used
- See Also:
-
getChronology
Gets the value of thechronologyproperty.- Property description:
- The calendar system used for parsing, displaying, and choosing dates in the
Calendar control.
The default is usually
IsoChronologyunless provided explicitly in theLocaleby use of a Locale calendar extension.Setting the value to
nullwill restore the default chronology. - Returns:
- the value of the
chronologyproperty - See Also:
-
setChronology
Sets the value of thechronologyproperty.- Property description:
- The calendar system used for parsing, displaying, and choosing dates in the
Calendar control.
The default is usually
IsoChronologyunless provided explicitly in theLocaleby use of a Locale calendar extension.Setting the value to
nullwill restore the default chronology. - Parameters:
value- the value for thechronologyproperty- 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 theshowWeekNumbersproperty.- 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 theshowWeekNumbersproperty- See Also:
-
isShowWeekNumbers
public final boolean isShowWeekNumbers()Gets the value of theshowWeekNumbersproperty.- 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
showWeekNumbersproperty - 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
topNodeproperty - See Also:
-
setTopNode
public final void setTopNode(javafx.scene.Node value) Sets the value of thetopNodeproperty.- 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 thetopNodeproperty- See Also:
-
getTopNode
public final javafx.scene.Node getTopNode()Gets the value of thetopNodeproperty.- 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
topNodeproperty - 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
bottomNodeproperty - See Also:
-
setBottomNode
public final void setBottomNode(javafx.scene.Node value) Sets the value of thebottomNodeproperty.- 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 thebottomNodeproperty- See Also:
-
getBottomNode
public final javafx.scene.Node getBottomNode()Gets the value of thebottomNodeproperty.- 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
bottomNodeproperty - See Also:
-
getClassCssMetaData
Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. -
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classjavafx.scene.control.Control
-