Package bluej.extensions2.event
Interface ApplicationListener
-
public interface ApplicationListener
This interface allows an extension to listen for application events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
blueJReady(ApplicationEvent event)
This method will be called when the BlueJ application is initialised.default void
dataSubmissionFailed(ApplicationEvent event)
This method will be called when submission to the current data recording server (Blackbox, or your local purpose-run recording server) has failed.
-
-
-
Method Detail
-
blueJReady
void blueJReady(ApplicationEvent event)
This method will be called when the BlueJ application is initialised. Warning: If the extension is loaded with a Project, it will not get this event since BlueJ has already completed its initialisation when the project is loaded. 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
- the event of typeApplicationEvent.EventType.APP_READY_EVENT
sent over.
-
dataSubmissionFailed
default void dataSubmissionFailed(ApplicationEvent event)
This method will be called when submission to the current data recording server (Blackbox, or your local purpose-run recording server) has failed.- Parameters:
event
- the event of typeApplicationEvent.EventType.DATA_SUBMISSION_FAILED_EVENT
sent over.
-
-