Package bluej.extensions2.event
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
eventOccurred(ExtensionEvent event)
This method will be called when an event occurs.
-
-
-
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
- AnExtensionEvent
object, typically one of theExtensionEvent
's subclasses.
-
-