LocalTime). The control
can be configured to only enter a time within a given time range. It can also be configured
to show hours and minutes, or hours and minutes and seconds, or hours and minutes and seconds
and milliseconds (see formatProperty())
| Modifier and Type | Class and Description |
|---|---|
| public static enum | TimePicker.
The time picker control supports 12 and 24 hour times. |
| public static enum | TimePicker.
An enum for supported time units. |
| Modifier and Type | Field and Description |
|---|---|
| private final ReadOnlyBooleanWrapper | |
| private boolean | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final IntegerProperty | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | adjust()
Adjusts the time picker's time based on the earliest and latest time allowed and also based on the step rate currently in effect. |
| public final ReadOnlyBooleanProperty | |
| private boolean | |
| private boolean | |
| public final ObjectProperty | Returns: the type of the clockThe clock type determines whether the control will display 24 or 12 hours. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObjectProperty | Returns: the earliest time allowedThe earliest time that the user can enter via the time picker. |
| public final ObjectProperty | Returns: the time unitThe format used by the picker, e.g. "hours and minutes", or "hours, minutes, and seconds". |
| private LocalTime | |
| public final TimePicker. | |
| public final LocalTime | |
| public final TimePicker. | |
| public final Node | |
| public final LocalTime | |
| public final Node | |
| public final Consumer | |
| public final Node | |
| public final Node | |
| public final int | |
| public final LocalTime | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final ObjectProperty | Returns: a node used as a hoursSeparatorThe node that will be placed between the hours and the minutes field. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final ObjectProperty | Returns: the latest time allowedThe latest time that the user can enter via the time picker. |
| public final BooleanProperty | Returns: true if rollover is desiredA property used to control whether the fields should automatically increase or decrease the previous field when they reach their upper or lower limit. |
| public final ObjectProperty | Returns: a node used as a hoursSeparatorThe node that will be placed between the minutes and the seconds field. |
| public final ObjectProperty | Returns: the "on show popup" consumerThis consumer will be invoked to bring up a control for entering the time without using the keyboard. |
| public final BooleanProperty | Returns: true if the fields should rolloverA flag used to signal whether the time fields should start at the beginning of its value range when it reaches the end of it. |
| public final ObjectProperty | Returns: a node used as a hoursSeparatorThe node that will be placed between the seconds and the milliseconds field. |
| public final ObjectProperty | Returns: a node used as a hoursSeparator
Deprecated
we now have more than just one separator, hence use
hoursSeparatorProperty() etc...
The node that will be placed between the hours and the minutes field. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final BooleanProperty | Returns: true if the control will show a button for showing the popupDetermines if the control will show a button for showing or hiding the popup. |
| public final IntegerProperty | Returns: the step rate in minutesStores the "step rate" used by the control when the user increases or decreases the minutes field. |
| public final ObjectProperty |
| adjusted | back to summary |
|---|---|
| private final ReadOnlyBooleanWrapper adjusted | |
| adjustmentInProgress | back to summary |
|---|---|
| private boolean adjustmentInProgress | |
| clockType | back to summary |
|---|---|
| private final ObjectProperty<TimePicker. | |
| earliestTime | back to summary |
|---|---|
| private final ObjectProperty<LocalTime> earliestTime | |
| format | back to summary |
|---|---|
| private final ObjectProperty<TimePicker. | |
| hoursSeparator | back to summary |
|---|---|
| private final ObjectProperty<Node> hoursSeparator | |
| latestTime | back to summary |
|---|---|
| private final ObjectProperty<LocalTime> latestTime | |
| linkingFields | back to summary |
|---|---|
| private final BooleanProperty linkingFields | |
| minutesSeparator | back to summary |
|---|---|
| private final ObjectProperty<Node> minutesSeparator | |
| onShowPopup | back to summary |
|---|---|
| private final ObjectProperty<Consumer<TimePicker>> onShowPopup | |
| rollover | back to summary |
|---|---|
| private final BooleanProperty rollover | |
| secondsSeparator | back to summary |
|---|---|
| private final ObjectProperty<Node> secondsSeparator | |
| showPopupTriggerButton | back to summary |
|---|---|
| private final BooleanProperty showPopupTriggerButton | |
| stepRateInMinutes | back to summary |
|---|---|
| private final IntegerProperty stepRateInMinutes | |
| time | back to summary |
|---|---|
| private final ObjectProperty<LocalTime> time | |
| TimePicker | back to summary |
|---|---|
| public TimePicker() Constructs a new time picker. | |
| adjust | back to summary |
|---|---|
| public final void adjust() Adjusts the time picker's time based on the earliest and latest time allowed and also based on the step rate currently in effect. | |
| adjustedProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty adjustedProperty() | |
| adjustViaStepRate | back to summary |
|---|---|
| private boolean adjustViaStepRate() | |
| adjustViaTimeBounds | back to summary |
|---|---|
| private boolean adjustViaTimeBounds() | |
| clockTypeProperty | back to summary |
|---|---|
| public final ObjectProperty The clock type determines whether the control will display 24 or 12 hours. If the control shows 12 hours then an additional field for choosing between the "am" or "pm" meridian will be added.
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| earliestTimeProperty | back to summary |
|---|---|
| public final ObjectProperty The earliest time that the user can enter via the time picker.
| |
| formatProperty | back to summary |
|---|---|
| public final ObjectProperty The format used by the picker, e.g. "hours and minutes", or "hours, minutes, and seconds".
| |
| getAdjustedTime | back to summary |
|---|---|
| private LocalTime getAdjustedTime(LocalTime time) | |
| getClockType | back to summary |
|---|---|
| public final TimePicker. | |
| getEarliestTime | back to summary |
|---|---|
| public final LocalTime getEarliestTime() | |
| getFormat | back to summary |
|---|---|
| public final TimePicker. | |
| getHoursSeparator | back to summary |
|---|---|
| public final Node getHoursSeparator() | |
| getLatestTime | back to summary |
|---|---|
| public final LocalTime getLatestTime() | |
| getMinutesSeparator | back to summary |
|---|---|
| public final Node getMinutesSeparator() | |
| getOnShowPopup | back to summary |
|---|---|
| public final Consumer | |
| getSecondsSeparator | back to summary |
|---|---|
| public final Node getSecondsSeparator() | |
| getSeparator | back to summary |
|---|---|
| public final Node getSeparator()
Deprecated
| |
| getStepRateInMinutes | back to summary |
|---|---|
| public final int getStepRateInMinutes() | |
| getTime | back to summary |
|---|---|
| public final LocalTime getTime() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| hoursSeparatorProperty | back to summary |
|---|---|
| public final ObjectProperty The node that will be placed between the hours and the minutes field. The default separator is a label with text ":".
| |
| isAdjusted | back to summary |
|---|---|
| public final boolean isAdjusted() | |
| isLinkingFields | back to summary |
|---|---|
| public final boolean isLinkingFields() | |
| isRollover | back to summary |
|---|---|
| public final boolean isRollover() | |
| isShowPopupTriggerButton | back to summary |
|---|---|
| public final boolean isShowPopupTriggerButton() | |
| latestTimeProperty | back to summary |
|---|---|
| public final ObjectProperty The latest time that the user can enter via the time picker.
| |
| linkingFieldsProperty | back to summary |
|---|---|
| public final BooleanProperty linkingFieldsProperty() A property used to control whether the fields should automatically increase or decrease the previous field when they reach their upper or lower limit.
| |
| minutesSeparatorProperty | back to summary |
|---|---|
| public final ObjectProperty The node that will be placed between the minutes and the seconds field. The default separator is a label with text ":".
| |
| onShowPopupProperty | back to summary |
|---|---|
| public final ObjectProperty This consumer will be invoked to bring up a control for entering the time without using the keyboard. The default implementation shows a popup.
| |
| rolloverProperty | back to summary |
|---|---|
| public final BooleanProperty rolloverProperty() A flag used to signal whether the time fields should start at the beginning of its value range when it reaches the end of it. E.g. incrementing hour 23 would result in hour 0 when the user tries to increase it by one.
| |
| secondsSeparatorProperty | back to summary |
|---|---|
| public final ObjectProperty The node that will be placed between the seconds and the milliseconds field. The default separator is a label with text ".".
| |
| separatorProperty | back to summary |
|---|---|
| public final ObjectProperty Deprecated we now have more than just one separator, hence use The node that will be placed between the hours and the minutes field. The default separator is a label with text ":".
| |
| setClockType | back to summary |
|---|---|
| public final void setClockType(TimePicker. | |
| setEarliestTime | back to summary |
|---|---|
| public final void setEarliestTime(LocalTime earliestTime) | |
| setFormat | back to summary |
|---|---|
| public final void setFormat(TimePicker. | |
| setHoursSeparator | back to summary |
|---|---|
| public final void setHoursSeparator(Node separator) | |
| setLatestTime | back to summary |
|---|---|
| public final void setLatestTime(LocalTime latestTime) | |
| setLinkingFields | back to summary |
|---|---|
| public final void setLinkingFields(boolean linkingFields) | |
| setMinutesSeparator | back to summary |
|---|---|
| public final void setMinutesSeparator(Node separator) | |
| setOnShowPopup | back to summary |
|---|---|
| public final void setOnShowPopup(Consumer<TimePicker> onShowPopup) | |
| setRollover | back to summary |
|---|---|
| public final void setRollover(boolean rollover) | |
| setSecondsSeparator | back to summary |
|---|---|
| public final void setSecondsSeparator(Node separator) | |
| setSeparator | back to summary |
|---|---|
| public final void setSeparator(Node separator)
Deprecated
| |
| setShowPopupTriggerButton | back to summary |
|---|---|
| public final void setShowPopupTriggerButton(boolean showPopupTriggerButton) | |
| setStepRateInMinutes | back to summary |
|---|---|
| public final void setStepRateInMinutes(int stepRateInMinutes) | |
| setTime | back to summary |
|---|---|
| public final void setTime(LocalTime time) | |
| showPopupTriggerButtonProperty | back to summary |
|---|---|
| public final BooleanProperty showPopupTriggerButtonProperty() Determines if the control will show a button for showing or hiding the popup.
| |
| stepRateInMinutesProperty | back to summary |
|---|---|
| public final IntegerProperty stepRateInMinutesProperty() Stores the "step rate" used by the control when the user increases or decreases the minutes field. The step rate can be used to (for example) make the minutes increase or decrease by 15 minutes every time the user presses the arrow up or down keys.
| |
| timeProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the current time displayed by the control.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TimePicker. | |
| public static final TimePicker. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TimePicker. | |
| public static TimePicker. |
| TWELVE_HOUR_CLOCK | back to summary |
|---|---|
| public static final TimePicker. | |
| TWENTY_FOUR_HOUR_CLOCK | back to summary |
|---|---|
| public static final TimePicker. | |
| ClockType | back to summary |
|---|---|
| private ClockType() | |
| valueOf | back to summary |
|---|---|
| public static TimePicker. | |
| values | back to summary |
|---|---|
| public static TimePicker. | |
formatProperty()
| Modifier and Type | Field and Description |
|---|---|
| public static final TimePicker. | |
| public static final TimePicker. | |
| public static final TimePicker. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TimePicker. | |
| public static TimePicker. |
| HOURS_MINUTES | back to summary |
|---|---|
| public static final TimePicker. | |
| HOURS_MINUTES_SECONDS | back to summary |
|---|---|
| public static final TimePicker. | |
| HOURS_MINUTES_SECONDS_MILLIS | back to summary |
|---|---|
| public static final TimePicker. | |
| Format | back to summary |
|---|---|
| private Format() | |
| valueOf | back to summary |
|---|---|
| public static TimePicker. | |
| values | back to summary |
|---|---|
| public static TimePicker. | |