|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractSpinnerModel
public abstract class AbstractSpinnerModel
Provides standard implementations for some of the methods in
SpinnerModel.
| 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 ChangeEvent notifications when the model changes. |
|
protected void |
fireStateChanged()
Fires a ChangeEvent to all the ChangeListeners
added to this model |
|
ChangeListener[] |
getChangeListeners()
Gets all the ChangeListeners. |
|
|
getListeners(Class<T> c)
Gets all the listeners that are of a particular type. |
|
void |
removeChangeListener(ChangeListener listener)
Remove a particular listener. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.SpinnerModel |
|---|
getNextValue, getPreviousValue, getValue, setValue |
| Field Detail |
|---|
protected EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractSpinnerModel()
AbstractSpinnerModel.
| Method Detail |
|---|
public void addChangeListener(ChangeListener listener)
ChangeListener with the model so that it will
receive ChangeEvent notifications when the model changes.
addChangeListener in interface SpinnerModellistener - the listener to add (null is ignored).public <T extends EventListener> T[] getListeners(Class<T> c)
c - the type of listener
public ChangeListener[] getChangeListeners()
ChangeListeners.
ChangeListenerspublic void removeChangeListener(ChangeListener listener)
removeChangeListener in interface SpinnerModellistener - the listener to removeprotected void fireStateChanged()
ChangeEvent to all the ChangeListeners
added to this model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||