Uses of Interface
org.djutils.event.EventListener
-
Packages that use EventListener Package Description org.djutils.event Provides classes and interfaces for asynchronous communication.org.djutils.event.collection Provides a subscription-based extension to Java's collection library.org.djutils.event.rmi EventProducer and EventListener extended for Remote access. -
-
Uses of EventListener in org.djutils.event
Methods in org.djutils.event that return types with arguments of type EventListener Modifier and Type Method Description Set<Map.Entry<EventType,List<Reference<EventListener>>>>EventListenerMap. entrySet()Returns the Set of Entry types holding pairs of a key (EventType) and a value (List of references to EventListeners for that EventType).List<Reference<EventListener>>EventListenerMap. get(EventType key)Returns the original List of references to EventListeners for the given EventType.default List<Reference<EventListener>>EventProducer. getListenerReferences(EventType eventType)Return a safe copy of the list of (strong or weak) references to the registered listeners for the provided event type, or an empty list when nothing is registered for this event type.List<Reference<EventListener>>LocalEventProducer. getListenerReferences(EventType eventType)Return a safe copy of the list of (strong or weak) references to the registered listeners for the provided event type, or an empty list when nothing is registered for this event type.List<Reference<EventListener>>EventListenerMap. put(EventType key, List<Reference<EventListener>> value)Add the List of references to EventListeners for the given EventType to the underlying Map.List<Reference<EventListener>>EventListenerMap. remove(EventType key)Remove the List of references to EventListeners for the given EventType.Collection<List<Reference<EventListener>>>EventListenerMap. values()Returns a safe copy of the collection of lists of references to EventListeners, i.e.Methods in org.djutils.event with parameters of type EventListener Modifier and Type Method Description default booleanEventProducer. addListener(EventListener listener, EventType eventType)Add a listener as strong reference to the BEGINNING of a queue of listeners.default booleanEventProducer. addListener(EventListener listener, EventType eventType, int position)Add a listener as strong reference to the specified position of a queue of listeners.default booleanEventProducer. addListener(EventListener listener, EventType eventType, int position, ReferenceType referenceType)Add a listener to the specified position of a queue of listeners.default booleanEventProducer. addListener(EventListener listener, EventType eventType, ReferenceType referenceType)Add a listener to the BEGINNING of a queue of listeners.booleanLocalEventProducer. addListener(EventListener listener, EventType eventType)Add a listener as strong reference to the BEGINNING of a queue of listeners.booleanLocalEventProducer. addListener(EventListener listener, EventType eventType, int position)Add a listener as strong reference to the specified position of a queue of listeners.booleanLocalEventProducer. addListener(EventListener listener, EventType eventType, int position, ReferenceType referenceType)Add a listener to the specified position of a queue of listeners.booleanLocalEventProducer. addListener(EventListener listener, EventType eventType, ReferenceType referenceType)Add a listener to the BEGINNING of a queue of listeners.booleanEventListenerMap. containsValue(EventListener eventListener)Return whether the EventListenerMap contains the eventListener as one of the subscribers.default booleanEventProducer. removeListener(EventListener listener, EventType eventType)Remove the subscription of a listener for a specific event.booleanLocalEventProducer. removeListener(EventListener listener, EventType eventType)Remove the subscription of a listener for a specific event.Method parameters in org.djutils.event with type arguments of type EventListener Modifier and Type Method Description booleanEventListenerMap. containsValue(Reference<EventListener> reference)Returns whether the EventListenerMap contains the reference to the eventListener as one of the subscribers.List<Reference<EventListener>>EventListenerMap. put(EventType key, List<Reference<EventListener>> value)Add the List of references to EventListeners for the given EventType to the underlying Map. -
Uses of EventListener in org.djutils.event.collection
Classes in org.djutils.event.collection that implement EventListener Modifier and Type Class Description classEventProducingCollection<T>The Event producing collection provides a set to which one can subscribe interest in entry changes.classEventProducingList<E>The Event producing list provides a list to which one can subscribe interest in entry changes.classEventProducingSet<E>The Event producing set provides a set to which one can subscribe interest in entry changes. -
Uses of EventListener in org.djutils.event.rmi
Classes in org.djutils.event.rmi that implement EventListener Modifier and Type Class Description classRmiEventListenerThe RmiEventListener class embodies a remote EventListener using the RMI protocol.
-