Class CalendarTimePickerSkin

java.lang.Object
javafx.scene.control.SkinBase<CalendarTimePicker>
jfxtras.internal.scene.control.skin.CalendarTimePickerSkin
All Implemented Interfaces:
javafx.scene.control.Skin<CalendarTimePicker>

public class CalendarTimePickerSkin extends javafx.scene.control.SkinBase<CalendarTimePicker>
  • Property Details

  • Field Details

    • showTickLabels

      private final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> showTickLabels
    • labelDateFormat

      private final javafx.beans.property.ObjectProperty<DateFormat> 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

      static final Date DATE_WITH_UNIQUE_NUMBERS_FOR_HMS
    • refreshingAtomicInteger

      private final AtomicInteger refreshingAtomicInteger
    • changingCalendar

      private Calendar changingCalendar
      changingCalendar holds the displayed value while the sliders send events with value-is-changing is true
  • Constructor Details

  • Method Details

    • construct

      private void construct()
    • showTickLabelsProperty

      public final javafx.beans.property.ObjectProperty<CalendarTimePickerSkin.ShowTickLabels> showTickLabelsProperty()
      ShowTickLabels:
      See Also:
    • setShowTickLabels

      public final void setShowTickLabels(CalendarTimePickerSkin.ShowTickLabels value)
      Sets the value of the property showTickLabels.
      Property description:
      ShowTickLabels:
    • getShowTickLabels

      public final CalendarTimePickerSkin.ShowTickLabels getShowTickLabels()
      Gets the value of the property showTickLabels.
      Property description:
      ShowTickLabels:
    • withShowTickLabels

      public final CalendarTimePickerSkin withShowTickLabels(CalendarTimePickerSkin.ShowTickLabels value)
    • labelDateFormatProperty

      public final javafx.beans.property.ObjectProperty<DateFormat> labelDateFormatProperty()
      LabelDateFormat:
      See Also:
    • setLabelDateFormat

      public final void setLabelDateFormat(DateFormat value)
      Sets the value of the property labelDateFormat.
      Property description:
      LabelDateFormat:
    • getLabelDateFormat

      public final DateFormat getLabelDateFormat()
      Gets the value of the property labelDateFormat.
      Property description:
      LabelDateFormat:
    • withLabelDateFormat

      public final CalendarTimePickerSkin withLabelDateFormat(DateFormat value)
    • getLABEL_DATEFORMAT_DEFAULT

      private DateFormat getLABEL_DATEFORMAT_DEFAULT()
    • getClassCssMetaData

      public static List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getClassCssMetaData()
      Returns:
      The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
    • getCssMetaData

      public List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
      This method should delegate to Node.getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.
      Overrides:
      getCssMetaData in class javafx.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

      public static Calendar blockHoursToStep(Calendar calendar, Integer stepSize)
      hours fit in the hour steps
    • blockMinutesToStep

      public static Calendar blockMinutesToStep(Calendar calendar, Integer stepSize)
      minutes fit in the minute steps
    • blockSecondsToStep

      public static Calendar blockSecondsToStep(Calendar calendar, Integer stepSize)
      seconds fit in the second steps
    • getChangingCalendar

      private Calendar getChangingCalendar()
    • setChangingCalendar

      public void setChangingCalendar(Calendar lCalendar)
    • acceptChangingCalendar

      public void acceptChangingCalendar()
    • callValueValidationCallback

      private boolean callValueValidationCallback(Calendar value)
      Parameters:
      value -
      Returns:
    • setHours

      private static void setHours(Calendar calendar, int hours)
    • setMinutes

      private static void setMinutes(Calendar calendar, int minutes)
    • setSeconds

      private static void setSeconds(Calendar calendar, int seconds)