NumericOptionSpinnerModel
class NumericOptionSpinnerModel[A](value0: Option[A], minimum0: Option[A], maximum0: Option[A], stepSize0: A)(num: Numeric[A]) extends AbstractSpinnerModel with Serializable
class AbstractSpinnerModel
trait Serializable
trait SpinnerModel
class Object
trait Matchable
class Any
Value members
Concrete methods
Returns the next number in the sequence.
Returns the next number in the sequence.
- Returns
value + stepSize
ornull
if the sum exceedsmaximum
.
Returns the previous number in the sequence.
Returns the previous number in the sequence.
- Returns
value - stepSize
, ornull
if the sum is less thanminimum
.
Sets the current value for this sequence. If value
is
null
, or not an Option
, an
IllegalArgumentException
is thrown. No
bounds checking is done here.
Sets the current value for this sequence. If value
is
null
, or not an Option
, an
IllegalArgumentException
is thrown. No
bounds checking is done here.
This method fires a ChangeEvent
if the value has changed.
- Value Params
- v
the current (non
null
)Option
for this sequence
- Throws
- IllegalArgumentException
if
value
isnull
or not aOption