Methods Summary |
---|
public void | addChangeListener(javax.swing.event.ChangeListener l)Adds a ChangeListener to the model's listener list. The
ChangeListeners must be notified when models value
changes.
|
public java.lang.Object | getNextValue()Return the object in the sequence that comes after the object returned
by getValue() . If the end of the sequence has been reached
then return null. Calling this method does not effect value .
|
public java.lang.Object | getPreviousValue()Return the object in the sequence that comes before the object returned
by getValue() . If the end of the sequence has been reached then
return null. Calling this method does not effect value .
|
public java.lang.Object | getValue()The current element of the sequence. This element is usually
displayed by the editor part of a JSpinner .
|
public void | removeChangeListener(javax.swing.event.ChangeListener l)Removes a ChangeListener from the model's listener list.
|
public void | setValue(java.lang.Object value)Changes current value of the model, typically this value is displayed
by the 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.
|