public class AppleEventHandler
extends java.lang.Object
implements com.apple.eawt.PreferencesHandler, com.apple.eawt.OpenFilesHandler, com.apple.eawt.AboutHandler, com.apple.eawt.QuitHandler
| Modifier and Type | Method and Description |
|---|---|
void |
handleAbout(com.apple.eawt.AppEvent.AboutEvent event)
Handles an Apple About action by calling
PuffinApp.about() |
void |
handlePreferences(com.apple.eawt.AppEvent.PreferencesEvent event)
Handles an Apple Preferences action by calling
PuffinApp.preferences() |
void |
handleQuitRequestWith(com.apple.eawt.AppEvent.QuitEvent event,
com.apple.eawt.QuitResponse response)
Handles an Apple Quit action by calling
PuffinApp.quit() |
static void |
initialize(PuffinApp puffinApp)
Instantiates a new AppleEventHandler, which will send events to the
supplied PuffinApp instance.
|
void |
openFiles(com.apple.eawt.AppEvent.OpenFilesEvent event)
Handles an Apple Open File action by calling
PuffinApp.openFiles |
public static void initialize(PuffinApp puffinApp)
puffinApp - the PuffinApp instance to control using Apple eventspublic void handleAbout(com.apple.eawt.AppEvent.AboutEvent event)
PuffinApp.about()handleAbout in interface com.apple.eawt.AboutHandlerevent - the event corresponding to the About actionPuffinApp.about()public void openFiles(com.apple.eawt.AppEvent.OpenFilesEvent event)
PuffinApp.openFilesopenFiles in interface com.apple.eawt.OpenFilesHandlerevent - the event corresponding to the OpenFile actionPuffinApp.openFiles(List files, boolean createNewSuite)public void handlePreferences(com.apple.eawt.AppEvent.PreferencesEvent event)
PuffinApp.preferences()handlePreferences in interface com.apple.eawt.PreferencesHandlerevent - the event corresponding to the Preferences actionPuffinApp.showPreferences()public void handleQuitRequestWith(com.apple.eawt.AppEvent.QuitEvent event,
com.apple.eawt.QuitResponse response)
PuffinApp.quit()handleQuitRequestWith in interface com.apple.eawt.QuitHandlerevent - the event corresponding to the Quit actionresponse - object to receive our response to the requestPuffinApp.quit()