public class IlvListEventDispatcher extends IlvAbstractEventDispatcher
IlvListEventDispatcher
is an event dispatcher backed by a list
of event listeners. Some of the pros and cons of using an IlvListEventDispatcher
are:
IlvListEventDispatcher
has excellent and nearly constant
performance for dispatching events to registered listeners.IlvListEventDispatcher
has excellent performance for adding event listeners, but increasingly poor
performance for removing them as the number of registered listeners grows.
This is because of the linear search required to find the specified listener.
IlvHashedEventDispatcher
listeners
Constructor and Description |
---|
IlvListEventDispatcher()
Creates a new
IlvListEventDispatcher . |
Modifier and Type | Method and Description |
---|---|
protected IlvEventListenerCollection |
createListeners()
Creates and returns a new collection of event listeners.
|
addListener, publish, removeListener
public IlvListEventDispatcher()
IlvListEventDispatcher
.protected IlvEventListenerCollection createListeners()
createListeners
in class IlvAbstractEventDispatcher
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.