java.lang.Object
javafx.scene.control.SpinnerValueFactory<Long>
com.tlcsdm.core.javafx.control.LongSpinnerValueFactory
A
SpinnerValueFactory implementation designed to iterate through
long values.
Note that the default converter is implemented as an
LongStringConverter instance.
- 作者:
- unknowIfGuestInDream
-
属性概要
属性类型属性说明final javafx.beans.property.LongPropertySets the amount to increment or decrement by, per step.final javafx.beans.property.LongPropertySets the maximum allowable value for this value factoryfinal javafx.beans.property.LongPropertySets the minimum allowable value for this value factory从类继承的属性 javafx.scene.control.SpinnerValueFactory
converter, value, wrapAround -
嵌套类概要
从类继承的嵌套类/接口 javafx.scene.control.SpinnerValueFactory
javafx.scene.control.SpinnerValueFactory.DoubleSpinnerValueFactory, javafx.scene.control.SpinnerValueFactory.IntegerSpinnerValueFactory, javafx.scene.control.SpinnerValueFactory.ListSpinnerValueFactory<T> -
字段概要
字段修饰符和类型字段说明private final javafx.beans.property.LongPropertyprivate final javafx.beans.property.LongPropertyprivate final javafx.beans.property.LongProperty -
构造器概要
构造器构造器说明LongSpinnerValueFactory(long min, long max) Constructs a new LongSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.LongSpinnerValueFactory(long min, long max, long initialValue) Constructs a new LongSpinnerValueFactory with a defaultamountToStepByof one.LongSpinnerValueFactory(long min, long max, long initialValue, long amountToStepBy) Constructs a new LongSpinnerValueFactory. -
方法概要
修饰符和类型方法说明final javafx.beans.property.LongPropertySets the amount to increment or decrement by, per step.voiddecrement(int steps) final long获取amountToStepBy属性的值。final longgetMax()获取max属性的值。final longgetMin()获取min属性的值。voidincrement(int steps) final javafx.beans.property.LongPropertySets the maximum allowable value for this value factoryfinal javafx.beans.property.LongPropertySets the minimum allowable value for this value factoryfinal voidsetAmountToStepBy(long value) 设置amountToStepBy属性的值。final voidsetMax(long value) 设置max属性的值。final voidsetMin(long value) 设置min属性的值。(专用程序包) static longwrapValue(long value, long min, long max) 从类继承的方法 javafx.scene.control.SpinnerValueFactory
converterProperty, getConverter, getValue, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundProperty
-
属性详细资料
-
min
public final javafx.beans.property.LongProperty minPropertySets the minimum allowable value for this value factory- 另请参阅:
-
max
public final javafx.beans.property.LongProperty maxPropertySets the maximum allowable value for this value factory- 另请参阅:
-
amountToStepBy
public final javafx.beans.property.LongProperty amountToStepByPropertySets the amount to increment or decrement by, per step.- 另请参阅:
-
-
字段详细资料
-
min
private final javafx.beans.property.LongProperty min -
max
private final javafx.beans.property.LongProperty max -
amountToStepBy
private final javafx.beans.property.LongProperty amountToStepBy
-
-
构造器详细资料
-
LongSpinnerValueFactory
public LongSpinnerValueFactory(long min, long max) Constructs a new LongSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.- 参数:
min- The minimum allowed long value for the Spinner.max- The maximum allowed long value for the Spinner.
-
LongSpinnerValueFactory
public LongSpinnerValueFactory(long min, long max, long initialValue) Constructs a new LongSpinnerValueFactory with a defaultamountToStepByof one.- 参数:
min- The minimum allowed long value for the Spinner.max- The maximum allowed long value for the Spinner.initialValue- The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.
-
LongSpinnerValueFactory
public LongSpinnerValueFactory(long min, long max, long initialValue, long amountToStepBy) Constructs a new LongSpinnerValueFactory.- 参数:
min- The minimum allowed long value for the Spinner.max- The maximum allowed long value for the Spinner.initialValue- The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.amountToStepBy- The amount to increment or decrement by, per step.
-
-
方法详细资料
-
setMin
public final void setMin(long value) 设置min属性的值。- 属性说明:
- Sets the minimum allowable value for this value factory
- 参数:
value-min属性的值- 另请参阅:
-
getMin
public final long getMin()获取min属性的值。- 属性说明:
- Sets the minimum allowable value for this value factory
- 返回:
min属性的值- 另请参阅:
-
minProperty
public final javafx.beans.property.LongProperty minProperty()Sets the minimum allowable value for this value factory- 返回:
min属性- 另请参阅:
-
setMax
public final void setMax(long value) 设置max属性的值。- 属性说明:
- Sets the maximum allowable value for this value factory
- 参数:
value-max属性的值- 另请参阅:
-
getMax
public final long getMax()获取max属性的值。- 属性说明:
- Sets the maximum allowable value for this value factory
- 返回:
max属性的值- 另请参阅:
-
maxProperty
public final javafx.beans.property.LongProperty maxProperty()Sets the maximum allowable value for this value factory- 返回:
max属性- 另请参阅:
-
setAmountToStepBy
public final void setAmountToStepBy(long value) 设置amountToStepBy属性的值。- 属性说明:
- Sets the amount to increment or decrement by, per step.
- 参数:
value-amountToStepBy属性的值- 另请参阅:
-
getAmountToStepBy
public final long getAmountToStepBy()获取amountToStepBy属性的值。- 属性说明:
- Sets the amount to increment or decrement by, per step.
- 返回:
amountToStepBy属性的值- 另请参阅:
-
amountToStepByProperty
public final javafx.beans.property.LongProperty amountToStepByProperty()Sets the amount to increment or decrement by, per step.- 返回:
amountToStepBy属性- 另请参阅:
-
decrement
public void decrement(int steps) - 指定者:
decrement在类中javafx.scene.control.SpinnerValueFactory<Long>
-
increment
public void increment(int steps) - 指定者:
increment在类中javafx.scene.control.SpinnerValueFactory<Long>
-
wrapValue
static long wrapValue(long value, long min, long max)
-