T
- the type of date control where the entry is being usedpublic abstract class EntryViewBase<T extends DateControl> extends CalendarFXControl implements Comparable<EntryViewBase<T>>
DayView
, the
DetailedWeekView
, and the MonthView
. Each date control class uses
their own entry factory to create entry view instances.
This view uses four pseudo classes:
Type | Property and Description |
---|---|
ReadOnlyObjectProperty<T> |
dateControl
The date control where the entry view is shown.
|
ReadOnlyBooleanProperty |
draggedEnd
A flag used to indicate that the user is currently changing the end time
of the entry (view).
|
ReadOnlyBooleanProperty |
dragged
A flag used to indicate that the entry view is currently being dragged by
the user.
|
ReadOnlyBooleanProperty |
draggedStart
A flag used to indicate that the user is currently changing the start
time of the entry (view).
|
ReadOnlyObjectProperty<LocalDate> |
endDate
The date where the view stops to appear (not the end date of the calendar
entry).
|
ReadOnlyObjectProperty<LocalTime> |
endTime
The time where the entry view ends (not the end time of the calendar
entry).
|
ReadOnlyBooleanProperty |
hidden
A property set internally to indicate that the view could not be shown to
the user.
|
ReadOnlyObjectProperty<EntryViewBase.Position> |
position
A calendar entry can span multiple days.
|
ReadOnlyBooleanProperty |
selected
A flag used to indicate that the entry has been selected by the user.
|
ReadOnlyObjectProperty<LocalDate> |
startDate
The date where the view starts to appear (not the start date of the
calendar entry).
|
ReadOnlyObjectProperty<LocalTime> |
startTime
The time where the entry view starts (not the start time of the calendar
entry).
|
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 |
EntryViewBase.Position
An enumerator used for specifying the position of an entry view.
|
USE_COMPUTED_SIZE, USE_PREF_SIZE
BASELINE_OFFSET_SAME_AS_HEIGHT
Modifier | Constructor and Description |
---|---|
protected |
EntryViewBase(Entry<?> entry)
Constructs a new view for the given entry.
|
Modifier and Type | Method and Description |
---|---|
void |
bounce()
Makes the entry view "bounce" by applying a scale transition.
|
int |
compareTo(EntryViewBase<T> o) |
ReadOnlyObjectProperty<T> |
dateControlProperty()
The date control where the entry view is shown.
|
ReadOnlyBooleanProperty |
draggedEndProperty()
A flag used to indicate that the user is currently changing the end time
of the entry (view).
|
ReadOnlyBooleanProperty |
draggedProperty()
A flag used to indicate that the entry view is currently being dragged by
the user.
|
ReadOnlyBooleanProperty |
draggedStartProperty()
A flag used to indicate that the user is currently changing the start
time of the entry (view).
|
ReadOnlyObjectProperty<LocalDate> |
endDateProperty()
The date where the view stops to appear (not the end date of the calendar
entry).
|
ReadOnlyObjectProperty<LocalTime> |
endTimeProperty()
The time where the entry view ends (not the end time of the calendar
entry).
|
T |
getDateControl()
Returns the value of
dateControlProperty() . |
LocalDate |
getEndDate()
Returns the value of
endDateProperty() . |
LocalTime |
getEndTime()
Returns the value of
endTimeProperty() . |
Entry<?> |
getEntry()
Returns the calendar entry for which the view was created.
|
EntryViewBase.Position |
getPosition()
Returns the value of
positionProperty() . |
ObservableList<org.controlsfx.control.PropertySheet.Item> |
getPropertySheetItems()
Returns a list of property items that can be shown by the
PropertySheet of ControlsFX. |
LocalDate |
getStartDate()
Returns the value of
startDateProperty() . |
LocalTime |
getStartTime()
Returns the value of
startTimeProperty() . |
ReadOnlyBooleanProperty |
hiddenProperty()
A property set internally to indicate that the view could not be shown to
the user.
|
boolean |
intersects(EntryViewBase<?> otherView)
Convenience method to check if this entry view intersects with the given
entry view.
|
boolean |
isDragged()
Returns the value of the
draggedProperty() . |
boolean |
isDraggedEnd()
Returns the value of
draggedEndProperty() . |
boolean |
isDraggedStart()
Returns the value of
draggedStartProperty() . |
boolean |
isHidden()
Returns the value of
hiddenProperty() . |
boolean |
isReadOnly()
Convenience method to determine whether the entry belongs to a calendar
that is read-only.
|
boolean |
isSelected()
Returns the value of
selectedProperty() . |
ReadOnlyObjectProperty<EntryViewBase.Position> |
positionProperty()
A calendar entry can span multiple days.
|
ReadOnlyBooleanProperty |
selectedProperty()
A flag used to indicate that the entry has been selected by the user.
|
ReadOnlyObjectProperty<LocalDate> |
startDateProperty()
The date where the view starts to appear (not the start date of the
calendar entry).
|
ReadOnlyObjectProperty<LocalTime> |
startTimeProperty()
The time where the entry view starts (not the start time of the calendar
entry).
|
String |
toString() |
getUserAgentStylesheet
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, 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, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final ReadOnlyBooleanProperty hiddenProperty
MonthView
where space is restricted).isHidden()
public final ReadOnlyObjectProperty<EntryViewBase.Position> positionProperty
getPosition()
public final ReadOnlyObjectProperty<T extends DateControl> dateControlProperty
getDateControl()
public final ReadOnlyObjectProperty<LocalDate> startDateProperty
AllDayView
lays out entry views across multiple days.getStartDate()
public final ReadOnlyObjectProperty<LocalDate> endDateProperty
AllDayView
lays out entry views across multiple days.getEndDate()
public final ReadOnlyObjectProperty<LocalTime> startTimeProperty
getStartTime()
public final ReadOnlyObjectProperty<LocalTime> endTimeProperty
getEndTime()
public final ReadOnlyBooleanProperty draggedProperty
isDragged()
public final ReadOnlyBooleanProperty draggedStartProperty
isDraggedStart()
public final ReadOnlyBooleanProperty draggedEndProperty
isDraggedEnd()
public final ReadOnlyBooleanProperty selectedProperty
isSelected()
protected EntryViewBase(Entry<?> entry)
entry
- the calendar entrypublic final Entry<?> getEntry()
public final ReadOnlyBooleanProperty hiddenProperty()
MonthView
where space is restricted).isHidden()
public final boolean isHidden()
hiddenProperty()
.public final void bounce()
public final ReadOnlyObjectProperty<EntryViewBase.Position> positionProperty()
getPosition()
public final EntryViewBase.Position getPosition()
positionProperty()
.public final ReadOnlyObjectProperty<T> dateControlProperty()
getDateControl()
public final T getDateControl()
dateControlProperty()
.public final ReadOnlyObjectProperty<LocalDate> startDateProperty()
AllDayView
lays out entry views across multiple days.getStartDate()
public final LocalDate getStartDate()
startDateProperty()
.public final ReadOnlyObjectProperty<LocalDate> endDateProperty()
AllDayView
lays out entry views across multiple days.getEndDate()
public final LocalDate getEndDate()
endDateProperty()
.public final ReadOnlyObjectProperty<LocalTime> startTimeProperty()
getStartTime()
public final LocalTime getStartTime()
startTimeProperty()
.public final ReadOnlyObjectProperty<LocalTime> endTimeProperty()
getEndTime()
public final LocalTime getEndTime()
endTimeProperty()
.public final ReadOnlyBooleanProperty draggedProperty()
isDragged()
public final boolean isDragged()
draggedProperty()
.public final ReadOnlyBooleanProperty draggedStartProperty()
isDraggedStart()
public final boolean isDraggedStart()
draggedStartProperty()
.public final ReadOnlyBooleanProperty draggedEndProperty()
isDraggedEnd()
public final boolean isDraggedEnd()
draggedEndProperty()
.public final ReadOnlyBooleanProperty selectedProperty()
isSelected()
public final boolean isSelected()
selectedProperty()
.public final boolean intersects(EntryViewBase<?> otherView)
Entry.intersects(Entry)
.otherView
- the other view to checkpublic final boolean isReadOnly()
public int compareTo(EntryViewBase<T> o)
compareTo
in interface Comparable<EntryViewBase<T extends DateControl>>
public ObservableList<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
PropertySheet
of ControlsFX.getPropertySheetItems
in class CalendarFXControl
Copyright © 2017 Dirk Lemmermann Software & Consulting. All rights reserved.