| Modifier and Type | Class and Description |
|---|---|
| public static enum | DurationPicker.
The possible types of labels used by the duration picker, see
|
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final ListProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObjectProperty | |
| public final ListProperty | |
| public final BooleanProperty | Returns: true if the fields will be filled with leading zerosDetermines if the fields will be "filled" with leading zeros or not, example: "04" for 4 hours, or "0005" for 5 milliseconds. |
| public final Duration | |
| public final ObservableList | |
| public final DurationPicker. | |
| public final Duration | |
| public final Duration | |
| public final Consumer | |
| public final Callback | |
| 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 boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final ObjectProperty | Returns: the type of labels shown for each unitThe label type determines if the control will show no labels, short labels (e.g. "d") or long labels (e.g. "days"). |
| 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: the maximum durationStores the maximum duration that the picker can display. |
| public final ObjectProperty | Returns: the minimum durationStores the minimum duration that the picker can display. |
| 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 ObjectProperty | Returns: the separator factoryThe separator factory is used to create nodes that will be placed between two fields of the picker. |
| 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 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. |
| duration | back to summary |
|---|---|
| private final ObjectProperty<Duration> duration | |
| fields | back to summary |
|---|---|
| private final ListProperty<ChronoUnit> fields | |
| fillDigits | back to summary |
|---|---|
| private final BooleanProperty fillDigits | |
| labelType | back to summary |
|---|---|
| private final ObjectProperty<DurationPicker. | |
| linkingFields | back to summary |
|---|---|
| private final BooleanProperty linkingFields | |
| maximumDuration | back to summary |
|---|---|
| private final ObjectProperty<Duration> maximumDuration | |
| minimumDuration | back to summary |
|---|---|
| private final ObjectProperty<Duration> minimumDuration | |
| onShowPopup | back to summary |
|---|---|
| private final ObjectProperty<Consumer<DurationPicker>> onShowPopup | |
| rollover | back to summary |
|---|---|
| private final BooleanProperty rollover | |
| separatorFactory | back to summary |
|---|---|
| private final ObjectProperty<Callback<Pair<ChronoUnit, ChronoUnit>, Node>> separatorFactory | |
| showPopupTriggerButton | back to summary |
|---|---|
| private final BooleanProperty showPopupTriggerButton | |
| DurationPicker | back to summary |
|---|---|
| public DurationPicker() | |
| constrain | back to summary |
|---|---|
| private void constrain() | |
| 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
| |
| durationProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| fieldsProperty | back to summary |
|---|---|
| public final ListProperty The list of fields that will be displayed inside the control. Supported units are: weeks, days, hours, minutes, seconds, millis. | |
| fillDigitsProperty | back to summary |
|---|---|
| public final BooleanProperty fillDigitsProperty() Determines if the fields will be "filled" with leading zeros or not, example: "04" for 4 hours, or "0005" for 5 milliseconds. This only applies to fields with a granularity of HOURS or lower. It does not make sense to fill DAYS with it as there is no limit on the number of days (no upper bound). The default value is "true".
| |
| getDuration | back to summary |
|---|---|
| public final Duration getDuration() | |
| getFields | back to summary |
|---|---|
| public final ObservableList | |
| getLabelType | back to summary |
|---|---|
| public final DurationPicker. | |
| getMaximumDuration | back to summary |
|---|---|
| public final Duration getMaximumDuration() | |
| getMinimumDuration | back to summary |
|---|---|
| public final Duration getMinimumDuration() | |
| getOnShowPopup | back to summary |
|---|---|
| public final Consumer | |
| getSeparatorFactory | back to summary |
|---|---|
| public final Callback | |
| 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.
| |
| isFillDigits | back to summary |
|---|---|
| public final boolean isFillDigits() | |
| isLinkingFields | back to summary |
|---|---|
| public final boolean isLinkingFields() | |
| isRollover | back to summary |
|---|---|
| public final boolean isRollover() | |
| isShowPopupTriggerButton | back to summary |
|---|---|
| public final boolean isShowPopupTriggerButton() | |
| labelTypeProperty | back to summary |
|---|---|
| public final ObjectProperty The label type determines if the control will show no labels, short labels (e.g. "d") or long labels (e.g. "days").
| |
| 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.
| |
| maximumDurationProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the maximum duration that the picker can display.
| |
| minimumDurationProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the minimum duration that the picker can display. The minimum duration can not be negative.
| |
| 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.
| |
| separatorFactoryProperty | back to summary |
|---|---|
| public ObjectProperty The separator factory is used to create nodes that will be placed between two fields of the picker. E.g. to separate hours one would return a label with a colon in it (8 hours 35 minutes and 40 seconds would then look like this -> "8:35:40").
| |
| setDuration | back to summary |
|---|---|
| public final void setDuration(Duration duration) | |
| setFields | back to summary |
|---|---|
| public final void setFields(ObservableList<ChronoUnit> fields) | |
| setFillDigits | back to summary |
|---|---|
| public final void setFillDigits(boolean fillDigits) | |
| setLabelType | back to summary |
|---|---|
| public final void setLabelType(DurationPicker. | |
| setLinkingFields | back to summary |
|---|---|
| public final void setLinkingFields(boolean linkingFields) | |
| setMaximumDuration | back to summary |
|---|---|
| public final void setMaximumDuration(Duration maximumDuration) | |
| setMinimumDuration | back to summary |
|---|---|
| public final void setMinimumDuration(Duration minimumDuration) | |
| setOnShowPopup | back to summary |
|---|---|
| public final void setOnShowPopup(Consumer<DurationPicker> onShowPopup) | |
| setRollover | back to summary |
|---|---|
| public final void setRollover(boolean rollover) | |
| setSeparatorFactory | back to summary |
|---|---|
| public void setSeparatorFactory(Callback<Pair<ChronoUnit, ChronoUnit>, Node> separatorFactory) | |
| setShowPopupTriggerButton | back to summary |
|---|---|
| public final void setShowPopupTriggerButton(boolean showPopupTriggerButton) | |
| showPopupTriggerButtonProperty | back to summary |
|---|---|
| public final BooleanProperty showPopupTriggerButtonProperty() Determines if the control will show a button for showing or hiding the popup.
| |
setLabelType(LabelType).
| Modifier and Type | Field and Description |
|---|---|
| public static final DurationPicker. | LONG
Display the full name of a field, e.g. "days", "hours", ... |
| public static final DurationPicker. | NONE
Do not display any label for the values. |
| public static final DurationPicker. | SHORT
Display short labels for each field, e.g. "d" for "days", "h" for "hours", etc... |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DurationPicker. | |
| public static DurationPicker. |
| LONG | back to summary |
|---|---|
| public static final DurationPicker. Display the full name of a field, e.g. "days", "hours", ... | |
| NONE | back to summary |
|---|---|
| public static final DurationPicker. Do not display any label for the values. | |
| SHORT | back to summary |
|---|---|
| public static final DurationPicker. Display short labels for each field, e.g. "d" for "days", "h" for "hours", etc... | |
| LabelType | back to summary |
|---|---|
| private LabelType() | |
| valueOf | back to summary |
|---|---|
| public static DurationPicker. | |
| values | back to summary |
|---|---|
| public static DurationPicker. | |