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

def getNextValue: AnyRef

Returns the next number in the sequence.

Returns the next number in the sequence.

Returns

value + stepSize or null if the sum exceeds maximum.

def getPreviousValue: AnyRef

Returns the previous number in the sequence.

Returns the previous number in the sequence.

Returns

value - stepSize, or null if the sum is less than minimum.

def getValue: AnyRef
def maximum: Option[A]
def maximum_=(value: Option[A]): Unit
def minimum: Option[A]
def minimum_=(value: Option[A]): Unit
def setValue(v: AnyRef): Unit

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 is null or not a Option

def stepSize: A
def stepSize_=(value: A): Unit
def value: Option[A]
def value_=(v: Option[A]): Unit

Inherited methods

def addChangeListener(`x$0`: ChangeListener): Unit
Inherited from
AbstractSpinnerModel
def getChangeListeners(): Array[ChangeListener]
Inherited from
AbstractSpinnerModel
def getListeners[T <: EventListener](`x$0`: Class[T]): Array[T]
Inherited from
AbstractSpinnerModel
def removeChangeListener(`x$0`: ChangeListener): Unit
Inherited from
AbstractSpinnerModel