javax.swing
public abstract class AbstractSpinnerModel extends Object implements SpinnerModel
Since: 1.4
Field Summary | |
---|---|
protected EventListenerList | listenerList Stores the listeners registered with the model. |
Constructor Summary | |
---|---|
AbstractSpinnerModel()
Creates an AbstractSpinnerModel . |
Method Summary | |
---|---|
void | addChangeListener(ChangeListener listener)
Registers a ChangeListener with the model so that it will
receive {@link ChangeEvent} notifications when the model changes.
|
protected void | fireStateChanged()
Fires a ChangeEvent to all the ChangeListener s
added to this model |
ChangeListener[] | getChangeListeners()
Gets all the ChangeListener s.
|
<T extends EventListener> T[] | getListeners(Class<T> c)
Gets all the listeners that are of a particular type.
|
void | removeChangeListener(ChangeListener listener)
Remove a particular listener.
|
AbstractSpinnerModel
.ChangeListener
with the model so that it will
receive {@link ChangeEvent} notifications when the model changes.
Parameters: listener the listener to add (null
is ignored).
ChangeEvent
to all the ChangeListener
s
added to this modelChangeListener
s.
Returns: all the ChangeListener
s
Parameters: c the type of listener
Returns: the listeners that are of the specific type
Parameters: listener the listener to remove