All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----openstar.util.EventSupport
You can either inherit from this class (as long as you fire only one type of event) or you can use one or more instances of this class as members of your event-generating class.
protected TypedList listeners
All listeners are required to be derived from
java.util.EventListener
.
public EventSupport()
public void addEventListener(EventListener listener)
No checks for multiple occurences are made.
public void removeEventListener(EventListener listener)
No checks for multiple occurences are made.
public void fireEvent(Event event, EventDelivery delivery)
The event is delivered using the given EventDelivery
object which is responsible to cast the generic Event
to the appropriate derived type and to call the appropriate method of
the EventListener
.
The event is delivered to the set of listeners that are registered at the moment. Changes to the list of listeners that occur indirectly from the event processing methods do not effect the set of listeners that get the event.
public TypedList getListeners()
java.util.EventListener
.
All Packages Class Hierarchy This Package Previous Next Index