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 enumprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CalendarchangingCalendar 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.Paneprivate final javafx.scene.control.Sliderprivate final javafx.beans.property.ObjectProperty<DateFormat>(package private) final javafx.scene.layout.Paneprivate final javafx.scene.control.Sliderprivate final AtomicIntegerprivate final javafx.scene.control.Sliderprivate 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 TypeMethodDescriptionvoidstatic CalendarblockHoursToStep(Calendar calendar, Integer stepSize) hours fit in the hour stepsstatic CalendarblockMinutesToStep(Calendar calendar, Integer stepSize) minutes fit in the minute stepsstatic CalendarblockSecondsToStep(Calendar calendar, Integer stepSize) seconds fit in the second stepsprivate booleanprivate voidprivate voidconstruct the nodes TODO: snap to tick when releasedprivate Calendarstatic 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 DateFormatfinal DateFormatGets the value of the property labelDateFormat.Gets the value of the property showTickLabels.final javafx.beans.property.ObjectProperty<DateFormat>LabelDateFormat:voidmodifyChangingCalendarHour(int hour) voidmodifyChangingCalendarMinute(int minutes) voidmodifyChangingCalendarSecond(int seconds) private voidrefresh()private voidhide or show nodes (VBox reserves room for not visible nodes)voidsetChangingCalendar(Calendar lCalendar) private static voidfinal voidsetLabelDateFormat(DateFormat value) Sets the value of the property labelDateFormat.private static voidsetMinutes(Calendar calendar, int minutes) private static voidsetSeconds(Calendar calendar, int seconds) final voidSets the value of the property showTickLabels.final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels>ShowTickLabels:final CalendarTimePickerSkinwithLabelDateFormat(DateFormat value) final CalendarTimePickerSkinMethods 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: -
labelDateFormat
LabelDateFormat:
-
-
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: -
setShowTickLabels
Sets the value of the property showTickLabels.- Property description:
- ShowTickLabels:
-
getShowTickLabels
Gets the value of the property showTickLabels.- Property description:
- ShowTickLabels:
-
withShowTickLabels
-
labelDateFormatProperty
LabelDateFormat: -
setLabelDateFormat
Sets the value of the property labelDateFormat.- Property description:
- LabelDateFormat:
-
getLabelDateFormat
Gets the value of the property labelDateFormat.- Property description:
- LabelDateFormat:
-
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:
getCssMetaDatain 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
-