java.lang.Object | |
↳ | javax.swing.AbstractSpinnerModel |
![]() |
This class provides the ChangeListener part of the
SpinnerModel interface that should be suitable for most concrete SpinnerModel
implementations. Subclasses must provide an implementation of the
setValue
, getValue
, getNextValue
and
getPreviousValue
methods.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
listenerList | The list of ChangeListeners for this model. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a ChangeListener to the model's listener list.
| |||||||||||
Returns an array of all the
ChangeListener s added
to this AbstractSpinnerModel with addChangeListener(). | |||||||||||
Return an array of all the listeners of the given type that
were added to this model.
| |||||||||||
Removes a ChangeListener from the model's listener list.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Run each ChangeListeners stateChanged() method.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The list of ChangeListeners for this model. Subclasses may store their own listeners here.
Adds a ChangeListener to the model's listener list. The ChangeListeners must be notified when the models value changes.
l | the ChangeListener to add |
---|
Returns an array of all the ChangeListener
s added
to this AbstractSpinnerModel with addChangeListener().
ChangeListener
s added or an empty
array if no listeners have been addedReturn an array of all the listeners of the given type that were added to this model. For example to find all of the ChangeListeners added to this model:
myAbstractSpinnerModel.getListeners(ChangeListener.class);
listenerType | the type of listeners to return, e.g. ChangeListener.class |
---|
Removes a ChangeListener from the model's listener list.
l | the ChangeListener to remove |
---|
Run each ChangeListeners stateChanged() method.