Returns an array of all the objects currently registered as
FooListeners
upon this model.
FooListeners
are registered using the addFooListener method.
You can specify the listenerType argument
with a class literal, such as FooListener.class.
For example, you can query a DefaultBoundedRangeModel
instance m
for its change listeners
with the following code:
ChangeListener[] cls = (ChangeListener[])(m.getListeners(ChangeListener.class));If no such listeners exist, this method returns an empty array.
listenerType | the type of listeners requested;
this parameter should specify an interface
that descends from java.util.EventListener |
FooListeners
on this model,
or an empty array if no such
listeners have been added
ClassCastException | if listenerType doesn't
specify a class or interface that implements
java.util.EventListener |
getChangeListeners
Diagram: BoundedRangeModel