java.lang.Object
javafx.scene.control.SkinBase<CalendarTimePicker>
jfxtras.internal.scene.control.skin.CalendarTimePickerSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<CalendarTimePicker>
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty
<DateFormat> LabelDateFormat:final javafx.beans.property.ObjectProperty
<CalendarTimePickerSkin.ShowTickLabels> ShowTickLabels: -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Calendar
changingCalendar holds the displayed value while the sliders send events with value-is-changing is true(package private) static final Date
(package private) final javafx.scene.layout.Pane
private final javafx.scene.control.Slider
private final javafx.beans.property.ObjectProperty
<DateFormat> (package private) final javafx.scene.layout.Pane
private final javafx.scene.control.Slider
private final AtomicInteger
private final javafx.scene.control.Slider
private final javafx.beans.property.ObjectProperty
<CalendarTimePickerSkin.ShowTickLabels> private final javafx.scene.text.Text
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static Calendar
blockHoursToStep
(Calendar calendar, Integer stepSize) hours fit in the hour stepsstatic Calendar
blockMinutesToStep
(Calendar calendar, Integer stepSize) minutes fit in the minute stepsstatic Calendar
blockSecondsToStep
(Calendar calendar, Integer stepSize) seconds fit in the second stepsprivate boolean
private void
private void
construct the nodes TODO: snap to tick when releasedprivate Calendar
static List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> This method should delegate toNode.getClassCssMetaData()
so that a Node's CssMetaData can be accessed without the need for reflection.private DateFormat
final DateFormat
Gets the value of thelabelDateFormat
property.Gets the value of theshowTickLabels
property.final javafx.beans.property.ObjectProperty
<DateFormat> LabelDateFormat:void
modifyChangingCalendarHour
(int hour) void
modifyChangingCalendarMinute
(int minutes) void
modifyChangingCalendarSecond
(int seconds) private void
refresh()
private void
hide or show nodes (VBox reserves room for not visible nodes)void
setChangingCalendar
(Calendar lCalendar) private static void
final void
setLabelDateFormat
(DateFormat value) Sets the value of thelabelDateFormat
property.private static void
setMinutes
(Calendar calendar, int minutes) private static void
setSeconds
(Calendar calendar, int seconds) final void
Sets the value of theshowTickLabels
property.final javafx.beans.property.ObjectProperty
<CalendarTimePickerSkin.ShowTickLabels> ShowTickLabels:final CalendarTimePickerSkin
withLabelDateFormat
(DateFormat value) final CalendarTimePickerSkin
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Property Details
-
showTickLabels
public final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> showTickLabelsPropertyShowTickLabels:- See Also:
-
labelDateFormat
LabelDateFormat:- See Also:
-
-
Field Details
-
showTickLabels
private final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> showTickLabels -
labelDateFormat
-
hourScrollSlider
private final javafx.scene.control.Slider hourScrollSlider -
minuteScrollSlider
private final javafx.scene.control.Slider minuteScrollSlider -
secondScrollSlider
private final javafx.scene.control.Slider secondScrollSlider -
timeText
private final javafx.scene.text.Text timeText -
hourLabelsPane
final javafx.scene.layout.Pane hourLabelsPane -
minuteLabelsPane
final javafx.scene.layout.Pane minuteLabelsPane -
UNIQUE_NUMBER_FOR_H
static final int UNIQUE_NUMBER_FOR_H- See Also:
-
UNIQUE_NUMBER_FOR_M
static final int UNIQUE_NUMBER_FOR_M- See Also:
-
UNIQUE_NUMBER_FOR_S
static final int UNIQUE_NUMBER_FOR_S- See Also:
-
DATE_WITH_UNIQUE_NUMBERS_FOR_HMS
-
refreshingAtomicInteger
-
changingCalendar
changingCalendar holds the displayed value while the sliders send events with value-is-changing is true
-
-
Constructor Details
-
CalendarTimePickerSkin
-
-
Method Details
-
construct
private void construct() -
showTickLabelsProperty
public final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> showTickLabelsProperty()ShowTickLabels:- Returns:
- the
showTickLabels
property - See Also:
-
setShowTickLabels
Sets the value of theshowTickLabels
property.- Property description:
- ShowTickLabels:
- Parameters:
value
- the value for theshowTickLabels
property- See Also:
-
getShowTickLabels
Gets the value of theshowTickLabels
property.- Property description:
- ShowTickLabels:
- Returns:
- the value of the
showTickLabels
property - See Also:
-
withShowTickLabels
-
labelDateFormatProperty
LabelDateFormat:- Returns:
- the
labelDateFormat
property - See Also:
-
setLabelDateFormat
Sets the value of thelabelDateFormat
property.- Property description:
- LabelDateFormat:
- Parameters:
value
- the value for thelabelDateFormat
property- See Also:
-
getLabelDateFormat
Gets the value of thelabelDateFormat
property.- Property description:
- LabelDateFormat:
- Returns:
- the value of the
labelDateFormat
property - See Also:
-
withLabelDateFormat
-
getLABEL_DATEFORMAT_DEFAULT
-
getClassCssMetaData
- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
-
getCssMetaData
This method should delegate toNode.getClassCssMetaData()
so that a Node's CssMetaData can be accessed without the need for reflection.- Overrides:
getCssMetaData
in classjavafx.scene.control.SkinBase<CalendarTimePicker>
- Returns:
- The CssMetaData associated with this node, which may include the CssMetaData of its super classes.
-
createNodes
private void createNodes()construct the nodes TODO: snap to tick when released -
modifyChangingCalendarSecond
public void modifyChangingCalendarSecond(int seconds) -
modifyChangingCalendarMinute
public void modifyChangingCalendarMinute(int minutes) -
modifyChangingCalendarHour
public void modifyChangingCalendarHour(int hour) -
refreshLayout
private void refreshLayout()hide or show nodes (VBox reserves room for not visible nodes) -
refresh
private void refresh() -
blockHoursToStep
hours fit in the hour steps -
blockMinutesToStep
minutes fit in the minute steps -
blockSecondsToStep
seconds fit in the second steps -
getChangingCalendar
-
setChangingCalendar
-
acceptChangingCalendar
public void acceptChangingCalendar() -
callValueValidationCallback
- Parameters:
value
-- Returns:
-
setHours
-
setMinutes
-
setSeconds
-