Class AbstractCyEvent<T>

    • Constructor Detail

      • AbstractCyEvent

        public AbstractCyEvent​(T source,
                               Class<?> listenerClass)
        Constructor.
        Parameters:
        source - The source object that fires the event. May NOT be null.
        listenerClass - The Class that defines the listener interface. May NOT be null.
    • Method Detail

      • getSource

        public T getSource()
        The object that fired the event.
        Specified by:
        getSource in interface CyEvent<T>
        Returns:
        The object that fired the event.
      • getListenerClass

        public Class<?> getListenerClass()
        The Class of the listener that is expected to handle this event.
        Specified by:
        getListenerClass in interface CyEvent<T>
        Returns:
        The Class of the listener that is expected to handle this event.