- java.lang.Object
-
- javafx.scene.control.SpinnerValueFactory<Integer>
-
- javafx.scene.control.SpinnerValueFactory.IntegerSpinnerValueFactory
-
- 含まれているクラス:
- SpinnerValueFactory<T>
public static class SpinnerValueFactory.IntegerSpinnerValueFactory extends SpinnerValueFactory<Integer>
integer値を反復処理するように設計されたSpinnerValueFactory実装。デフォルトの
converterはIntegerStringConverterインスタンスとして実装されることに注意してください。- 導入されたバージョン:
- JavaFX 8u40
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 IntegerPropertyamountToStepBy増分または減分するステップの量を設定します。IntegerPropertymaxこの値ファクトリの最大許容値を設定しますIntegerPropertyminこの値ファクトリの最小許容値を設定します。-
クラスjavafx.scene.control.SpinnerValueFactoryから継承されたプロパティ
converter、value、wrapAround
-
-
ネストされたクラスのサマリー
-
クラスjavafx.scene.control.SpinnerValueFactoryから継承されたネストされたクラス/インタフェース
SpinnerValueFactory.DoubleSpinnerValueFactory、SpinnerValueFactory.IntegerSpinnerValueFactory、SpinnerValueFactory.ListSpinnerValueFactory<T>
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 IntegerSpinnerValueFactory(int min, int max)初期値をminの値と等しい値に設定し、amountToStepByをデフォルトの1に設定して、新しいIntegerSpinnerValueFactoryを構築します。IntegerSpinnerValueFactory(int min, int max, int initialValue)amountToStepByをデフォルトの1にして、新しいIntegerSpinnerValueFactoryを構築します。IntegerSpinnerValueFactory(int min, int max, int initialValue, int amountToStepBy)新しいIntegerSpinnerValueFactoryを構築します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 IntegerPropertyamountToStepByProperty()増分または減分するステップの量を設定します。voiddecrement(int steps)指定されたステップ数ずつのvalueの減分を試みます。intgetAmountToStepBy()プロパティamountToStepByの値を取得します。intgetMax()プロパティmaxの値を取得します。intgetMin()プロパティminの値を取得します。voidincrement(int steps)指定されたステップ数ずつのvalueの増分を試みます。IntegerPropertymaxProperty()この値ファクトリの最大許容値を設定しますIntegerPropertyminProperty()この値ファクトリの最小許容値を設定します。voidsetAmountToStepBy(int value)プロパティamountToStepByの値を設定します。voidsetMax(int value)プロパティmaxの値を設定します。voidsetMin(int value)プロパティminの値を設定します。-
クラス java.lang.Objectから継承されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
クラスjavafx.scene.control.SpinnerValueFactoryから継承されたメソッド
converterProperty、getConverter、getValue、isWrapAround、setConverter、setValue、setWrapAround、valueProperty、wrapAroundProperty
-
-
-
-
プロパティの詳細
-
min
public final IntegerProperty minProperty
この値ファクトリの最小許容値を設定します。- 戻り値:
- この値ファクトリの最小許容値
-
max
public final IntegerProperty maxProperty
この値ファクトリの最大許容値を設定します- 関連項目:
getMax()、setMax(int)
-
amountToStepBy
public final IntegerProperty amountToStepByProperty
増分または減分するステップの量を設定します。
-
-
コンストラクタの詳細
-
IntegerSpinnerValueFactory
public IntegerSpinnerValueFactory(int min, int max)初期値をminの値と等しい値に設定し、amountToStepByをデフォルトの1に設定して、新しいIntegerSpinnerValueFactoryを構築します。- パラメータ:
min- Spinnerの最小許容integer値。max- Spinnerの最大許容integer値。
-
IntegerSpinnerValueFactory
public IntegerSpinnerValueFactory(int min, int max, int initialValue)amountToStepByをデフォルトの1にして、新しいIntegerSpinnerValueFactoryを構築します。- パラメータ:
min- Spinnerの最小許容integer値。max- Spinnerの最大許容integer値。initialValue- 最初のインスタンス化時のSpinnerの値はmin引数とmax引数の範囲内にある必要があり、そうでない場合はminの値が使用されます。
-
IntegerSpinnerValueFactory
public IntegerSpinnerValueFactory(int min, int max, int initialValue, int amountToStepBy)新しいIntegerSpinnerValueFactoryを構築します。- パラメータ:
min- Spinnerの最小許容integer値。max- Spinnerの最大許容integer値。initialValue- 最初のインスタンス化時のSpinnerの値はmin引数とmax引数の範囲内にある必要があり、そうでない場合はminの値が使用されます。amountToStepBy- 増分または減分するステップの量。
-
-
メソッドの詳細
-
setMin
public final void setMin(int value)
プロパティminの値を設定します。- プロパティの説明:
- *プロパティ* *
-
getMin
public final int getMin()
プロパティminの値を取得します。- プロパティの説明:
- *プロパティ* *
-
minProperty
public final IntegerProperty minProperty()
この値ファクトリの最小許容値を設定します。- 戻り値:
- この値ファクトリの最小許容値
-
setMax
public final void setMax(int value)
プロパティmaxの値を設定します。- プロパティの説明:
- この値ファクトリの最大許容値を設定します
-
getMax
public final int getMax()
プロパティmaxの値を取得します。- プロパティの説明:
- この値ファクトリの最大許容値を設定します
-
maxProperty
public final IntegerProperty maxProperty()
この値ファクトリの最大許容値を設定します- 関連項目:
getMax()、setMax(int)
-
setAmountToStepBy
public final void setAmountToStepBy(int value)
プロパティamountToStepByの値を設定します。- プロパティの説明:
- 増分または減分するステップの量を設定します。
-
getAmountToStepBy
public final int getAmountToStepBy()
プロパティamountToStepByの値を取得します。- プロパティの説明:
- 増分または減分するステップの量を設定します。
-
amountToStepByProperty
public final IntegerProperty amountToStepByProperty()
増分または減分するステップの量を設定します。
-
decrement
public void decrement(int steps)
指定されたステップ数ずつのvalueの減分を試みます。- 定義:
decrement、クラス:SpinnerValueFactory<Integer>- パラメータ:
steps- 値に対して実行する減分の数。
-
increment
public void increment(int steps)
指定されたステップ数ずつのvalueの増分を試みます。- 定義:
increment、クラス:SpinnerValueFactory<Integer>- パラメータ:
steps- 値に対して実行する増分の数。
-
-