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

public abstract Class DigitsField

extends TimeField
Class Inheritance
Known Direct Subclasses
com.dlsc.gemsfx.skins.TimePickerSkin.HourField, com.dlsc.gemsfx.skins.TimePickerSkin.MinuteField, com.dlsc.gemsfx.skins.TimePickerSkin.SecondField, com.dlsc.gemsfx.skins.TimePickerSkin.MillisecondField
Imports
com.dlsc.gemsfx.TimePicker, org.apache.commons.lang3.StringUtils, javafx.beans.binding.Bindings, javafx.beans.property.IntegerProperty, .ObjectProperty, .SimpleIntegerProperty, .SimpleObjectProperty, .SimpleStringProperty, .StringProperty, javafx.geometry.Pos, javafx.scene.input.KeyCode, .KeyEvent

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

Field Summary

Modifier and TypeField and Description
private final IntegerProperty
private final IntegerProperty
private TimeField
private int
private TimeField
private final IntegerProperty
private final StringProperty
private final ObjectProperty<Integer>

Constructor Summary

AccessConstructor and Description
public
DigitsField(TimePicker timePicker, boolean fillDigits)

public
DigitsField(TimePicker timePicker, boolean fillDigits, int numberOfDigits)

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv void
decrement()

Implements abstract com.dlsc.gemsfx.skins.TimeField.decrement.

Fields that can be decremented have to implement this method.

public final Integer
public final Integer
public final int
private String
public final Integer
private void
private void
private void
pack-priv void
increment()

Implements abstract com.dlsc.gemsfx.skins.TimeField.increment.

Fields that can be incremented have to implement this method.

public final IntegerProperty

Returns:

the maximum value.
maximumValueProperty
()

The maximum value that can be entered in this field.

public final IntegerProperty

Returns:

the minimum value.
minimumValueProperty
()

The minimum value that can be entered in this field.

public final void
setMaximumValue(Integer maximumValue)

public final void
setMinimumValue(Integer minimumValue)

pack-priv final void
pack-priv final void
public final void
setStepRate(int stepRate)

private void
public final void
public final IntegerProperty

Returns:

the field's step rate
stepRateProperty
()

The step rate of the field.

public final ObjectProperty<Integer>

Returns:

the current value.
valueProperty
()

The current value of the field.

Inherited from com.dlsc.gemsfx.skins.TimeField:
getTimePicker

Field Detail

maximumValueback to summary
private final IntegerProperty maximumValue
minimumValueback to summary
private final IntegerProperty minimumValue
nextFieldback to summary
private TimeField nextField
numberOfDigitsback to summary
private int numberOfDigits
previousFieldback to summary
private TimeField previousField
stepRateback to summary
private final IntegerProperty stepRate
typedTextback to summary
private final StringProperty typedText
valueback to summary
private final ObjectProperty<Integer> value

Constructor Detail

DigitsFieldback to summary
public DigitsField(TimePicker timePicker, boolean fillDigits)
DigitsFieldback to summary
public DigitsField(TimePicker timePicker, boolean fillDigits, int numberOfDigits)

Method Detail

constrainValueback to summary
private void constrainValue()
decrementback to summary
pack-priv void decrement()

Implements abstract com.dlsc.gemsfx.skins.TimeField.decrement.

Doc from com.dlsc.gemsfx.skins.TimeField.decrement.

Fields that can be decremented have to implement this method.

Annotations
@Override
getMaximumValueback to summary
public final Integer getMaximumValue()
getMinimumValueback to summary
public final Integer getMinimumValue()
getStepRateback to summary
public final int getStepRate()
getTypedTextback to summary
private String getTypedText()
getValueback to summary
public final Integer 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()

Implements abstract com.dlsc.gemsfx.skins.TimeField.increment.

Doc from com.dlsc.gemsfx.skins.TimeField.increment.

Fields that can be incremented have to implement this method.

Annotations
@Override
maximumValuePropertyback to summary
public final IntegerProperty maximumValueProperty()

The maximum value that can be entered in this field.

Returns:IntegerProperty

the maximum value.

minimumValuePropertyback to summary
public final IntegerProperty minimumValueProperty()

The minimum value that can be entered in this field.

Returns:IntegerProperty

the minimum value.

setMaximumValueback to summary
public final void setMaximumValue(Integer maximumValue)
setMinimumValueback to summary
public final void setMinimumValue(Integer minimumValue)
setNextFieldback to summary
pack-priv final void setNextField(TimeField field)
setPreviousFieldback to summary
pack-priv final void setPreviousField(TimeField field)
setStepRateback to summary
public final void setStepRate(int stepRate)
setTypedTextback to summary
private void setTypedText(String text)
setValueback to summary
public final void setValue(Integer value)
stepRatePropertyback to summary
public final IntegerProperty stepRateProperty()

The step rate of the field. The field's value increases or decreases by this amount when the user hits the arrow up or down keys.

Returns:IntegerProperty

the field's step rate

valuePropertyback to summary
public final ObjectProperty<Integer> valueProperty()

The current value of the field.

Returns:ObjectProperty<Integer>

the current value.