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.
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.
(add-change-listener this l)
Adds a ChangeListener to the model's listener list. The ChangeListeners must be notified when the models value changes.
l - the ChangeListener to add - javax.swing.event.ChangeListener
Adds a ChangeListener to the model's listener list. The ChangeListeners must be notified when the models value changes. l - the ChangeListener to add - `javax.swing.event.ChangeListener`
(get-change-listeners this)
Returns an array of all the ChangeListeners added to this AbstractSpinnerModel with addChangeListener().
returns: all of the ChangeListeners added or an empty
array if no listeners have been added - javax.swing.event.ChangeListener[]
Returns an array of all the ChangeListeners added to this AbstractSpinnerModel with addChangeListener(). returns: all of the ChangeListeners added or an empty array if no listeners have been added - `javax.swing.event.ChangeListener[]`
(get-listeners this listener-type)
Return 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);
listener-type - the type of listeners to return, e.g. ChangeListener.class - java.lang.Class
returns: all of the objects receiving listenerType notifications
from this model - <T extends java.util.EventListener> T[]
Return 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); listener-type - the type of listeners to return, e.g. ChangeListener.class - `java.lang.Class` returns: all of the objects receiving listenerType notifications from this model - `<T extends java.util.EventListener> T[]`
(remove-change-listener this l)
Removes a ChangeListener from the model's listener list.
l - the ChangeListener to remove - javax.swing.event.ChangeListener
Removes a ChangeListener from the model's listener list. l - the ChangeListener to remove - `javax.swing.event.ChangeListener`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close