Interface ExtensionEventListener


  • public interface ExtensionEventListener
    This interface allows an extension to listen for all BlueJ events by using a single listener. Normally, extensions will use the specialised event types and listeners, but in some cases (e.g.) logging or testing extensions this overarching event type will be more appropriate.
    • Method Detail

      • eventOccurred

        void eventOccurred​(ExtensionEvent event)
        This method will be called when an event occurs. Note that this method is called from the JavaFX (GUI) thread and therefore the extension must return as quickly as possible. If a long operation must be performed the extension should start a Thread.
        Parameters:
        event - An ExtensionEvent object, typically one of the ExtensionEvent's subclasses.