类 LongSpinnerValueFactory

java.lang.Object
javafx.scene.control.SpinnerValueFactory<Long>
com.tlcsdm.core.javafx.control.LongSpinnerValueFactory

public class LongSpinnerValueFactory extends javafx.scene.control.SpinnerValueFactory<Long>
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.LongProperty
    Sets the amount to increment or decrement by, per step.
    final javafx.beans.property.LongProperty
    Sets the maximum allowable value for this value factory
    final javafx.beans.property.LongProperty
    Sets 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.LongProperty
     
    private final javafx.beans.property.LongProperty
     
    private 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 default amountToStepBy of one.
    LongSpinnerValueFactory(long min, long max, long initialValue)
    Constructs a new LongSpinnerValueFactory with a default amountToStepBy of one.
    LongSpinnerValueFactory(long min, long max, long initialValue, long amountToStepBy)
    Constructs a new LongSpinnerValueFactory.
  • 方法概要

    修饰符和类型
    方法
    说明
    final javafx.beans.property.LongProperty
    Sets the amount to increment or decrement by, per step.
    void
    decrement(int steps)
    final long
    获取amountToStepBy属性的值。
    final long
    获取max属性的值。
    final long
    获取min属性的值。
    void
    increment(int steps)
    final javafx.beans.property.LongProperty
    Sets the maximum allowable value for this value factory
    final javafx.beans.property.LongProperty
    Sets the minimum allowable value for this value factory
    final void
    setAmountToStepBy(long value)
    设置amountToStepBy属性的值。
    final void
    setMax(long value)
    设置max属性的值。
    final void
    setMin(long value)
    设置min属性的值。
    (专用程序包) static long
    wrapValue(long value, long min, long max)
     

    从类继承的方法 javafx.scene.control.SpinnerValueFactory

    converterProperty, getConverter, getValue, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundProperty

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 属性详细资料

  • 字段详细资料

    • 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 default amountToStepBy of 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 default amountToStepBy of 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)