Class EventListenerAdapter

  • All Implemented Interfaces:
    IEventListener

    public abstract class EventListenerAdapter
    extends java.lang.Object
    implements IEventListener
    EventListenerAdapter is a class that provides a skeletal implementation of the IEventListener interface to minimize effort required to implement the interface.

    This class provides a simple no-op implementation of the handleEvent(Event) method, and an implementation of the handleEvents(Event[]) method that calls the single handleEvent(Event) method for each event in the array.

    To provide a concrete implementation, the programmer needs only to extend this class to provide an implementation of the handleEvent(Event) method, and optionally also the handleEvents(Event[]) method.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleEvent​(Event event)
      Simple no-op implementation of the interface method.
      void handleEvents​(Event[] events)
      Simple implementation of the interface method that calls handleEvent(Event) for each item in the array.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait