Top Description Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class DurationUnitField

extends Label
Class Inheritance
Imports
com.dlsc.gemsfx.DurationPicker, .DurationPicker.LabelType, .TimePicker, java.time.Duration, java.time.temporal.ChronoUnit, java.util.Objects, .ResourceBundle, javafx.beans.binding.Bindings, javafx.beans.property.BooleanProperty, .LongProperty, .ObjectProperty, .SimpleBooleanProperty, .SimpleLongProperty, .SimpleObjectProperty, javafx.geometry.Pos, javafx.scene.control.Label, javafx.scene.input.KeyCode, .KeyEvent, javafx.scene.layout.Region

A control used for visualizing digits as part of the TimePicker control.

Field Summary

Modifier and TypeField and Description
private final ChronoUnit
private final ObjectProperty<Duration>
private final BooleanProperty
private final ResourceBundle
private final ObjectProperty<DurationPicker.LabelType>
private final LongProperty
private DurationUnitField
private final DurationPicker
private DurationUnitField
private String
private boolean
private final ObjectProperty<Long>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv void
public final ObjectProperty<Duration>
private String
fill(String str, ChronoUnit chronoUnit, String fillCharacter)

public final BooleanProperty
public final ChronoUnit
public final DurationPicker.LabelType
pack-priv final Long
public final Long
private void
private void
private void
pack-priv void
public final boolean
public boolean
public final ObjectProperty<DurationPicker.LabelType>
public final LongProperty

Returns:

the maximum value.
maximumValueProperty
()

The maximum value that can be entered in this field.

pack-priv final void
setMaximumValue(Long maximumValue)

pack-priv final void
pack-priv final void
public final void
setValue(Long value)

private void
public final ObjectProperty<Long>

Returns:

the current value.
valueProperty
()

The current value of the field.

Inherited from javafx.scene.control.Label:
createDefaultSkingetInitialFocusTraversablegetLabelForlabelForPropertysetLabelFor

Field Detail

chronoUnitback to summary
private final ChronoUnit chronoUnit
durationback to summary
private final ObjectProperty<Duration> duration
fillDigitsback to summary
private final BooleanProperty fillDigits
i18nback to summary
private final ResourceBundle i18n
labelTypeback to summary
private final ObjectProperty<DurationPicker.LabelType> labelType
maximumValueback to summary
private final LongProperty maximumValue
nextFieldback to summary
private DurationUnitField nextField
pickerback to summary
private final DurationPicker picker
previousFieldback to summary
private DurationUnitField previousField
typedTextback to summary
private String typedText
updatingback to summary
private boolean updating
valueback to summary
private final ObjectProperty<Long> value

Constructor Detail

DurationUnitFieldback to summary
public DurationUnitField(DurationPicker picker, ChronoUnit chronoUnit)

Method Detail

constrainValueback to summary
private void constrainValue()
decrementback to summary
pack-priv void decrement()
durationPropertyback to summary
public final ObjectProperty<Duration> durationProperty()
fillback to summary
private String fill(String str, ChronoUnit chronoUnit, String fillCharacter)
fillDigitsPropertyback to summary
public final BooleanProperty fillDigitsProperty()
getChronoUnitback to summary
public final ChronoUnit getChronoUnit()
getLabelTypeback to summary
public final DurationPicker.LabelType getLabelType()
getMaximumValueback to summary
pack-priv final Long getMaximumValue()
getValueback to summary
public final Long getValue()
handleArrowKeyback to summary
private void handleArrowKey(KeyEvent evt)
handleBackspaceback to summary
private void handleBackspace()
handleDigitback to summary
private void handleDigit(KeyEvent evt)
incrementback to summary
pack-priv void increment()
isFillDigitsback to summary
public final boolean isFillDigits()
isUpdatingback to summary
public boolean isUpdating()
labelTypePropertyback to summary
public final ObjectProperty<DurationPicker.LabelType> labelTypeProperty()
maximumValuePropertyback to summary
public final LongProperty maximumValueProperty()

The maximum value that can be entered in this field.

Returns:LongProperty

the maximum value.

setMaximumValueback to summary
pack-priv final void setMaximumValue(Long maximumValue)
setNextFieldback to summary
pack-priv final void setNextField(DurationUnitField field)
setPreviousFieldback to summary
pack-priv final void setPreviousField(DurationUnitField field)
setValueback to summary
public final void setValue(Long value)
updateStylesback to summary
private void updateStyles()
valuePropertyback to summary
public final ObjectProperty<Long> valueProperty()

The current value of the field.

Returns:ObjectProperty<Long>

the current value.