public static class SpinnerValueFactory.IntegerSpinnerValueFactory extends SpinnerValueFactory<Integer>
SpinnerValueFactory実装。
デフォルトのconverterはIntegerStringConverterインスタンスとして実装されることに注意してください。
| Type | プロパティと説明 |
|---|---|
IntegerProperty |
amountToStepBy
増分または減分するステップの量を設定します。
|
IntegerProperty |
max
この値ファクトリの最大許容値を設定します
|
IntegerProperty |
min
この値ファクトリの最小許容値を設定します。
|
converter, value, wrapAroundSpinnerValueFactory.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を構築します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
IntegerProperty |
amountToStepByProperty()
増分または減分するステップの量を設定します。
|
void |
decrement(int steps)
指定されたステップ数ずつの
valueの減分を試みます。 |
int |
getAmountToStepBy()
プロパティamountToStepByの値を取得します。
|
int |
getMax()
プロパティmaxの値を取得します。
|
int |
getMin()
プロパティminの値を取得します。
|
void |
increment(int steps)
指定されたステップ数ずつの
valueの増分を試みます。 |
IntegerProperty |
maxProperty()
この値ファクトリの最大許容値を設定します
|
IntegerProperty |
minProperty()
この値ファクトリの最小許容値を設定します。
|
void |
setAmountToStepBy(int value)
プロパティamountToStepByの値を設定します。
|
void |
setMax(int value)
プロパティmaxの値を設定します。
|
void |
setMin(int value)
プロパティminの値を設定します。
|
converterProperty, getConverter, getValue, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundPropertypublic final IntegerProperty minProperty
public final IntegerProperty maxProperty
getMax()、setMax(int)public final IntegerProperty amountToStepByProperty
public IntegerSpinnerValueFactory(int min,
int max)
amountToStepByをデフォルトの1に設定して、新しいIntegerSpinnerValueFactoryを構築します。min - Spinnerの最小許容integer値。max - Spinnerの最大許容integer値。public IntegerSpinnerValueFactory(int min,
int max,
int initialValue)
amountToStepByをデフォルトの1にして、新しいIntegerSpinnerValueFactoryを構築します。min - Spinnerの最小許容integer値。max - Spinnerの最大許容integer値。initialValue - 最初のインスタンス化時のSpinnerの値はmin引数とmax引数の範囲内にある必要があり、そうでない場合はminの値が使用されます。public IntegerSpinnerValueFactory(int min,
int max,
int initialValue,
int amountToStepBy)
min - Spinnerの最小許容integer値。max - Spinnerの最大許容integer値。initialValue - 最初のインスタンス化時のSpinnerの値はmin引数とmax引数の範囲内にある必要があり、そうでない場合はminの値が使用されます。amountToStepBy - 増分または減分するステップの量。public final void setMin(int value)
public final int getMin()
public final IntegerProperty minProperty()
public final void setMax(int value)
public final int getMax()
public final IntegerProperty maxProperty()
getMax()、setMax(int)public final void setAmountToStepBy(int value)
public final int getAmountToStepBy()
public final IntegerProperty amountToStepByProperty()
public void decrement(int steps)
valueの減分を試みます。decrement、クラスSpinnerValueFactory<Integer>steps - 値に対して実行する減分の数。public void increment(int steps)
valueの増分を試みます。increment、クラスSpinnerValueFactory<Integer>steps - 値に対して実行する増分の数。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.