Class CalendarTimePickerSkin
java.lang.Object
javafx.scene.control.SkinBase<CalendarTimePicker>
jfxtras.internal.scene.control.skin.CalendarTimePickerSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<CalendarTimePicker>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprivate static class -
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<DateFormat> LabelDateFormat:final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> ShowTickLabels: -
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 thelabelDateFormatproperty.Gets the value of theshowTickLabelsproperty.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 thelabelDateFormatproperty.private static voidsetMinutes(Calendar calendar, int minutes) private static voidsetSeconds(Calendar calendar, int seconds) final voidSets the value of theshowTickLabelsproperty.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:- 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
showTickLabelsproperty - See Also:
-
setShowTickLabels
Sets the value of theshowTickLabelsproperty.- Property description:
- ShowTickLabels:
- Parameters:
value- the value for theshowTickLabelsproperty- See Also:
-
getShowTickLabels
Gets the value of theshowTickLabelsproperty.- Property description:
- ShowTickLabels:
- Returns:
- the value of the
showTickLabelsproperty - See Also:
-
withShowTickLabels
-
labelDateFormatProperty
LabelDateFormat:- Returns:
- the
labelDateFormatproperty - See Also:
-
setLabelDateFormat
Sets the value of thelabelDateFormatproperty.- Property description:
- LabelDateFormat:
- Parameters:
value- the value for thelabelDateFormatproperty- See Also:
-
getLabelDateFormat
Gets the value of thelabelDateFormatproperty.- Property description:
- LabelDateFormat:
- Returns:
- the value of the
labelDateFormatproperty - 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:
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
-
blockMinutesToStep
-
blockSecondsToStep
-
getChangingCalendar
-
setChangingCalendar
-
acceptChangingCalendar
public void acceptChangingCalendar() -
callValueValidationCallback
- Parameters:
value-- Returns:
-
setHours
-
setMinutes
-
setSeconds
-