public class MonthSheetView extends DateControl
MonthSheetView.DateCell
). Cells are
created by a cell factory and can be customized to fit an application's needs.
Type | Property and Description |
---|---|
ObjectProperty<Callback<MonthSheetView.DateParameter,MonthSheetView.DateCell>> |
cellFactory
A property used to store a reference to the cell factory for this view.
|
ObjectProperty<MonthSheetView.ClickBehaviour> |
clickBehaviour
The behaviour used when the user clicks on a date.
|
ObjectProperty<DateSelectionModel> |
dateSelectionModel
A property used to store a selection model for selecting dates.
|
IntegerProperty |
extendedUnitsBackward
An integer property that stores the number of units that will be used
to extend the view by.
|
IntegerProperty |
extendedUnitsForward
An integer property that stores the number of units that will be used
to extend the view by.
|
ObjectProperty<MonthSheetView.ViewUnit> |
extendedViewUnit
A property used to store the unit shown by the view in front of or after the
main columns (e.g.
|
ObjectProperty<Callback<MonthSheetView.HeaderParameter,Node>> |
headerCellFactory
A property used to store a reference to the "header" cell factory for this view.
|
BooleanProperty |
showWeekNumber
A property used to control whether the week numbers should be shown.
|
ObjectProperty<MonthSheetView.ViewUnit> |
viewUnit
A property used to store the unit shown by the view (e.g.
|
ObjectProperty<MonthSheetView.WeekDayLayoutStrategy> |
weekDayLayout
A property used to store the layout strategy used by this view.
|
calendarSourceFactoryProperty, calendarsProperty, contextMenuCallbackProperty, dateDetailsCallbackProperty, dateProperty, defaultCalendarProviderProperty, draggedEntryProperty, enableHyperlinksProperty, endTimeProperty, entryContextMenuCallbackProperty, entryDetailsCallbackProperty, entryDetailsPopOverContentCallbackProperty, entryFactoryProperty, layoutProperty, requestedTimeProperty, selectionModeProperty, showTodayProperty, startTimeProperty, suspendUpdatesProperty, timeProperty, todayProperty, usagePolicyProperty, virtualGridProperty, weekFieldsProperty, zoneIdProperty
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Modifier and Type | Class and Description |
---|---|
static class |
MonthSheetView.BadgeDateCell
The badge date cell extends the
MonthSheetView.SimpleDateCell and adds another
label to it that is used to display a counter of the number of entries that
exist on that date. |
static class |
MonthSheetView.ClickBehaviour
An enumerator to control the behaviour of the control when the user
clicks on a date.
|
static class |
MonthSheetView.DateCell
The base class for all date cells that are used in combination with the
MonthSheetView . |
static class |
MonthSheetView.DateParameter
A parameter object used by the cell factory of the month sheet view.
|
static class |
MonthSheetView.DetailedDateCell
A specialization of the
MonthSheetView.SimpleDateCell that adds a small canvas on the
right-hand side to visualize the utilization of the day (the entries that exist on
that date). |
static class |
MonthSheetView.HeaderParameter
A parameter object used by the "header" cell factory of the month sheet view.
|
static class |
MonthSheetView.MonthHeaderCell
The default cell used for month headers.
|
static class |
MonthSheetView.SimpleDateCell
A date cell used to display the day of month, the day of week, and the week of year in
three separate labels.
|
static class |
MonthSheetView.UsageDateCell
A specialization of the
MonthSheetView.SimpleDateCell that adds utilization information
to the cell by coloring its background differently based on the number of entries
found on that day. |
static class |
MonthSheetView.ViewUnit
A view unit describes how many months the view should show.
|
static class |
MonthSheetView.WeekDayLayoutStrategy
The different ways the view can align date cells.
|
DateControl.ContextMenuParameter, DateControl.CreateCalendarSourceParameter, DateControl.CreateEntryParameter, DateControl.DateDetailsParameter, DateControl.EntryContextMenuParameter, DateControl.EntryDetailsParameter, DateControl.EntryDetailsPopOverContentParameter, DateControl.Layout, DateControl.Usage
usagePolicy
USE_COMPUTED_SIZE, USE_PREF_SIZE
BASELINE_OFFSET_SAME_AS_HEIGHT
Constructor and Description |
---|
MonthSheetView()
Constructs a new month sheet view that is using the
MonthSheetView.SimpleDateCell . |
bind, calendarSourceFactoryProperty, calendarsProperty, clearSelection, contextMenuCallbackProperty, createCalendarSource, createEntryAt, createEntryAt, dateDetailsCallbackProperty, dateProperty, defaultCalendarProviderProperty, deselect, draggedEntryProperty, editEntry, enableHyperlinksProperty, endTimeProperty, entryContextMenuCallbackProperty, entryDetailsCallbackProperty, entryDetailsPopOverContentCallbackProperty, entryFactoryProperty, findEntryView, getBoundDateControls, getCalendarAt, getCalendars, getCalendarSourceFactory, getCalendarSources, getCalendarVisibilityMap, getCalendarVisibilityProperty, getContextMenuCallback, getDate, getDateDetailsCallback, getDefaultCalendarProvider, getDraggedEntry, getEndTime, getEntryContextMenuCallback, getEntryDetailsCallback, getEntryDetailsPopOverContentCallback, getEntryFactory, getFirstDayOfWeek, getLayout, getRequestedTime, getSelectionMode, getSelections, getStartTime, getTime, getToday, getUsagePolicy, getVirtualGrid, getWeekendDays, getWeekFields, getZoneId, goBack, goForward, goToday, isCalendarVisible, isEnableHyperlinks, isShowToday, isSuspendUpdates, layoutProperty, refreshData, requestedTimeProperty, select, selectionModeProperty, setCalendarSourceFactory, setCalendarVisibility, setContextMenuCallback, setDate, setDateDetailsCallback, setDefaultCalendarProvider, setDraggedEntry, setEnableHyperlinks, setEndTime, setEntryContextMenuCallback, setEntryDetailsCallback, setEntryDetailsPopOverContentCallback, setEntryFactory, setLayout, setRequestedTime, setSelectionMode, setShowToday, setStartTime, setSuspendUpdates, setTime, setToday, setUsagePolicy, setVirtualGrid, setWeekFields, setZoneId, showDateDetails, showEntry, showTodayProperty, startTimeProperty, suspendUpdatesProperty, timeProperty, todayProperty, unbind, usagePolicyProperty, virtualGridProperty, weekFieldsProperty, zoneIdProperty
getUserAgentStylesheet
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, 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, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final ObjectProperty<Callback<MonthSheetView.DateParameter,MonthSheetView.DateCell>> cellFactoryProperty
MonthSheetView.SimpleDateCell
.getCellFactory()
,
setCellFactory(Callback)
public final ObjectProperty<Callback<MonthSheetView.HeaderParameter,Node>> headerCellFactoryProperty
MonthSheetView.MonthHeaderCell
.public final ObjectProperty<MonthSheetView.WeekDayLayoutStrategy> weekDayLayoutProperty
public final ObjectProperty<MonthSheetView.ViewUnit> viewUnitProperty
getViewUnit()
,
setViewUnit(ViewUnit)
public final ObjectProperty<MonthSheetView.ViewUnit> extendedViewUnitProperty
public final IntegerProperty extendedUnitsForwardProperty
public final IntegerProperty extendedUnitsBackwardProperty
public final BooleanProperty showWeekNumberProperty
isShowWeekNumber()
,
setShowWeekNumber(boolean)
public final ObjectProperty<DateSelectionModel> dateSelectionModelProperty
public final ObjectProperty<MonthSheetView.ClickBehaviour> clickBehaviourProperty
public MonthSheetView()
MonthSheetView.SimpleDateCell
.protected Skin<?> createDefaultSkin()
createDefaultSkin
in class Control
public final ObjectProperty<Callback<MonthSheetView.DateParameter,MonthSheetView.DateCell>> cellFactoryProperty()
MonthSheetView.SimpleDateCell
.getCellFactory()
,
setCellFactory(Callback)
public final Callback<MonthSheetView.DateParameter,MonthSheetView.DateCell> getCellFactory()
cellFactoryProperty()
.public final void setCellFactory(Callback<MonthSheetView.DateParameter,MonthSheetView.DateCell> factory)
cellFactoryProperty()
.factory
- the cell factorypublic final ObjectProperty<Callback<MonthSheetView.HeaderParameter,Node>> headerCellFactoryProperty()
MonthSheetView.MonthHeaderCell
.public final Callback<MonthSheetView.HeaderParameter,Node> getHeaderCellFactory()
headerCellFactoryProperty()
.public final void setHeaderCellFactory(Callback<MonthSheetView.HeaderParameter,Node> factory)
headerCellFactoryProperty()
.factory
- the "header" cell factorypublic final ObjectProperty<MonthSheetView.WeekDayLayoutStrategy> weekDayLayoutProperty()
public final MonthSheetView.WeekDayLayoutStrategy getWeekDayLayout()
weekDayLayoutProperty()
.public final void setWeekDayLayout(MonthSheetView.WeekDayLayoutStrategy weekDayLayout)
weekDayLayoutProperty()
.weekDayLayout
- the weekday layout strategypublic final ObjectProperty<MonthSheetView.ViewUnit> viewUnitProperty()
getViewUnit()
,
setViewUnit(ViewUnit)
public final MonthSheetView.ViewUnit getViewUnit()
viewUnitProperty()
.public final void setViewUnit(MonthSheetView.ViewUnit unit)
viewUnitProperty()
.unit
- the view unit (e.g. "quarters", "year", "month")public final ObjectProperty<MonthSheetView.ViewUnit> extendedViewUnitProperty()
public final MonthSheetView.ViewUnit getExtendedViewUnit()
extendedViewUnitProperty()
.public final void setExtendedViewUnit(MonthSheetView.ViewUnit unit)
extendedViewUnitProperty()
.unit
- the extended view unit (e.g. "quarters", "year", "month")public final IntegerProperty extendedUnitsForwardProperty()
public final int getExtendedUnitsForward()
extendedUnitsForward
.public final void setExtendedUnitsForward(int units)
extendedUnitsForward
.units
- the number of units shown at the end of the viewpublic final IntegerProperty extendedUnitsBackwardProperty()
public final int getExtendedUnitsBackward()
extendedUnitsBackwardProperty()
.public final void setExtendedUnitsBackward(int units)
extendedUnitsBackwardProperty()
.units
- the number of units shown at the beginning of the viewpublic final YearMonth getStartMonth()
public final YearMonth getEndMonth()
public final YearMonth getExtendedStartMonth()
setExtendedViewUnit(ViewUnit)
,
setExtendedUnitsBackward(int)
,
setExtendedUnitsForward(int)
public final YearMonth getExtendedEndMonth()
setExtendedViewUnit(ViewUnit)
,
setExtendedUnitsBackward(int)
,
setExtendedUnitsForward(int)
public final boolean isExtendedMonth(YearMonth month)
month
- the month to checksetExtendedViewUnit(ViewUnit)
,
setExtendedUnitsBackward(int)
,
setExtendedUnitsForward(int)
public final boolean isVisibleDate(LocalDate date)
date
- the date to check for visibilitygetExtendedStartMonth()
,
getExtendedEndMonth()
public final BooleanProperty showWeekNumberProperty()
isShowWeekNumber()
,
setShowWeekNumber(boolean)
public final boolean isShowWeekNumber()
showWeekNumberProperty()
.public final void setShowWeekNumber(boolean show)
showWeekNumberProperty()
.show
- true if the numbers should be shownpublic final ObjectProperty<DateSelectionModel> dateSelectionModelProperty()
public final DateSelectionModel getDateSelectionModel()
dateSelectionModelProperty()
.public final void setDateSelectionModel(DateSelectionModel model)
dateSelectionModelProperty()
.model
- the date selection modelpublic final ObjectProperty<MonthSheetView.ClickBehaviour> clickBehaviourProperty()
public final void setClickBehaviour(MonthSheetView.ClickBehaviour behaviour)
clickBehaviourProperty()
.behaviour
- the click behaviourpublic final MonthSheetView.ClickBehaviour getClickBehaviour()
clickBehaviourProperty()
.public ObservableList<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
CalendarFXControl
PropertySheet
of ControlsFX.getPropertySheetItems
in class DateControl
Copyright © 2017 Dirk Lemmermann Software & Consulting. All rights reserved.