public class LocalDateChooser extends Control
LocalDate
. It can show several
YearMonth
side by side and provides controls to change the currently
visible YearMonth
s.Type | Property and Description |
---|---|
IntegerProperty |
nextMonths
The number of next months relative to
yearMonth to show. |
IntegerProperty |
nextWeeks
The number of next weeks to show.
|
IntegerProperty |
previousMonths
The number of previous months relative to
yearMonth to show. |
IntegerProperty |
previousWeeks
The number of previous weeks to show.
|
LimitedComparableProperty<LocalDate> |
selectedDate
The currently selected
LocalDate . |
BooleanProperty |
showingMonthScrollButton
Flag if the month scroll button should be shown.
|
BooleanProperty |
showingWeekOfYear
Flag if the week of year should be shown.
|
BooleanProperty |
showingYearScrollButton
Flag if the year scroll button should be shown.
|
ObjectProperty<YearMonth> |
yearMonth
The currently displayed
YearMonth . |
contextMenu, height, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skinClassName, skin, tooltip, width
impl_traversalEngine, needsLayout
blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effect, eventDispatcher, focused, focusTraversable, hover, id, impl_showMnemonics, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, 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, visible
USE_COMPUTED_SIZE, USE_PREF_SIZE
Constructor and Description |
---|
LocalDateChooser()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getNextMonths()
Gets the value of the property nextMonths.
|
int |
getNextWeeks()
Gets the value of the property nextWeeks.
|
int |
getPreviousMonths()
Gets the value of the property previousMonths.
|
int |
getPreviousWeeks()
Gets the value of the property previousWeeks.
|
LocalDate |
getSelectedDate()
Gets the value of the property selectedDate.
|
protected String |
getUserAgentStylesheet() |
YearMonth |
getYearMonth()
Gets the value of the property yearMonth.
|
boolean |
isShowingMonthScrollButton()
Gets the value of the property showingMonthScrollButton.
|
boolean |
isShowingWeekOfYear()
Gets the value of the property showingWeekOfYear.
|
boolean |
isShowingYearScrollButton()
Gets the value of the property showingYearScrollButton.
|
IntegerProperty |
nextMonthsProperty()
The number of next months relative to
yearMonth to show. |
IntegerProperty |
nextWeeksProperty()
The number of next weeks to show.
|
IntegerProperty |
previousMonthsProperty()
The number of previous months relative to
yearMonth to show. |
IntegerProperty |
previousWeeksProperty()
The number of previous weeks to show.
|
LimitedComparableProperty<LocalDate> |
selectedDateProperty()
The currently selected
LocalDate . |
void |
setNextMonths(int nextMonths)
Sets the value of the property nextMonths.
|
void |
setNextWeeks(int nextWeeks)
Sets the value of the property nextWeeks.
|
void |
setPreviousMonths(int previousMonths)
Sets the value of the property previousMonths.
|
void |
setPreviousWeeks(int previousWeeks)
Sets the value of the property previousWeeks.
|
void |
setSelectedDate(LocalDate selectedDate)
Sets the value of the property selectedDate.
|
void |
setShowingMonthScrollButton(boolean showingMonthScrollButton)
Sets the value of the property showingMonthScrollButton.
|
void |
setShowingWeekOfYear(boolean showingWeekOfYear)
Sets the value of the property showingWeekOfYear.
|
void |
setShowingYearScrollButton(boolean showingYearScrollButton)
Sets the value of the property showingYearScrollButton.
|
void |
setYearMonth(YearMonth yearMonth)
Sets the value of the property yearMonth.
|
BooleanProperty |
showingMonthScrollButtonProperty()
Flag if the month scroll button should be shown.
|
BooleanProperty |
showingWeekOfYearProperty()
Flag if the week of year should be shown.
|
BooleanProperty |
showingYearScrollButtonProperty()
Flag if the year scroll button should be shown.
|
ObjectProperty<YearMonth> |
yearMonthProperty()
The currently displayed
YearMonth . |
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getSkin, getTooltip, getWidth, heightProperty, impl_computeContains, impl_computeLayoutBounds, impl_CSS_STYLEABLES, impl_cssGetFocusTraversableInitialValue, impl_getStyleableProperties, impl_notifyLayoutBoundsChanged, impl_processCSS, intersects, isResizable, layoutChildren, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setContextMenu, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setSkinClassName, setTooltip, setWidth, skinClassNameProperty, skinProperty, tooltipProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_computeGeomBounds, impl_createPGNode, impl_cssResetInitialValues, impl_geomChanged, impl_getAllParentStylesheets, impl_pickNodeLocal, impl_pickNodeLocal, impl_processMXNode, impl_traversalEngineProperty, impl_updatePG, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setImpl_traversalEngine, setNeedsLayout
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, 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, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_createStyleHelper, impl_cssGetCursorInitialValue, impl_getLeafTransform, impl_getPGNode, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getPseudoClassState, impl_getStyleable, impl_getStyleHelper, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_pickNode, impl_pseudoClassStateChanged, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPGNode, impl_transformsChanged, impl_traverse, inputMethodRequestsProperty, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToSceneTransformProperty, lookupAll, managedProperty, mouseTransparentProperty, 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, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visibleProperty
public LimitedComparableProperty<LocalDate> selectedDateProperty
LocalDate
.LocalDate#now()
TODO: support multi-selection?getSelectedDate()
,
setSelectedDate(LocalDate)
public ObjectProperty<YearMonth> yearMonthProperty
YearMonth
.getYearMonth()
,
setYearMonth(YearMonth)
public IntegerProperty previousWeeksProperty
getPreviousWeeks()
,
setPreviousWeeks(int)
public IntegerProperty nextWeeksProperty
getNextWeeks()
,
setNextWeeks(int)
public BooleanProperty showingWeekOfYearProperty
public IntegerProperty previousMonthsProperty
yearMonth
to show.getPreviousMonths()
,
setPreviousMonths(int)
public IntegerProperty nextMonthsProperty
yearMonth
to show.getNextMonths()
,
setNextMonths(int)
public BooleanProperty showingMonthScrollButtonProperty
public BooleanProperty showingYearScrollButtonProperty
public LocalDateChooser()
protected String getUserAgentStylesheet()
getUserAgentStylesheet
in class Control
public final LocalDate getSelectedDate()
LocalDate
.LocalDate#now()
TODO: support multi-selection?public final void setSelectedDate(LocalDate selectedDate)
LocalDate
.LocalDate#now()
TODO: support multi-selection?public LimitedComparableProperty<LocalDate> selectedDateProperty()
LocalDate
.LocalDate#now()
TODO: support multi-selection?getSelectedDate()
,
setSelectedDate(LocalDate)
public final YearMonth getYearMonth()
YearMonth
.public final void setYearMonth(YearMonth yearMonth)
YearMonth
.public ObjectProperty<YearMonth> yearMonthProperty()
YearMonth
.getYearMonth()
,
setYearMonth(YearMonth)
public final int getPreviousWeeks()
public final void setPreviousWeeks(int previousWeeks)
public IntegerProperty previousWeeksProperty()
getPreviousWeeks()
,
setPreviousWeeks(int)
public final int getNextWeeks()
public final void setNextWeeks(int nextWeeks)
public IntegerProperty nextWeeksProperty()
getNextWeeks()
,
setNextWeeks(int)
public final boolean isShowingWeekOfYear()
public final void setShowingWeekOfYear(boolean showingWeekOfYear)
public BooleanProperty showingWeekOfYearProperty()
public final int getPreviousMonths()
yearMonth
to show.public final void setPreviousMonths(int previousMonths)
yearMonth
to show.public IntegerProperty previousMonthsProperty()
yearMonth
to show.getPreviousMonths()
,
setPreviousMonths(int)
public final int getNextMonths()
yearMonth
to show.public final void setNextMonths(int nextMonths)
yearMonth
to show.public IntegerProperty nextMonthsProperty()
yearMonth
to show.getNextMonths()
,
setNextMonths(int)
public final boolean isShowingMonthScrollButton()
public final void setShowingMonthScrollButton(boolean showingMonthScrollButton)
public BooleanProperty showingMonthScrollButtonProperty()
public final boolean isShowingYearScrollButton()
public final void setShowingYearScrollButton(boolean showingYearScrollButton)
public BooleanProperty showingYearScrollButtonProperty()
Copyright © 2012-2013 Drombler. All Rights Reserved.