All Known Implementing Classes:
AbstractSpinnerModel, SpinnerNumberModel, SpinnerDateModel, SpinnerListModel
ListModel however there are some important differences:
A SpinnerModel has three properties, only the first is read/write.
value
nextValue
value is the
last element of the sequence.
previousValue
value is the
first element of the sequence.
value property changes,
ChangeListeners are notified. SpinnerModel may
choose to notify the ChangeListeners under other circumstances.Hans - Muller1.4 - | Method from javax.swing.SpinnerModel Summary: |
|---|
| addChangeListener, getNextValue, getPreviousValue, getValue, removeChangeListener, setValue |
| Method from javax.swing.SpinnerModel Detail: |
|---|
ChangeListener to the model's listener list. The
ChangeListeners must be notified when models value
changes. |
getValue(). If the end of the sequence has been reached
then return null. Calling this method does not effect value. |
getValue(). If the end of the sequence has been reached then
return null. Calling this method does not effect value. |
editor part of a JSpinner. |
ChangeListener from the model's listener list. |
editor part of a JSpinner.
If the SpinnerModel implementation doesn't support
the specified value then an IllegalArgumentException
is thrown. For example a SpinnerModel for numbers might
only support values that are integer multiples of ten. In
that case, model.setValue(new Number(11))
would throw an exception. |