Class MacOSAppEventDispatcher

  • All Implemented Interfaces:
    com.apple.eawt.AboutHandler, com.apple.eawt.AppEventListener, com.apple.eawt.AppForegroundListener, com.apple.eawt.AppHiddenListener, com.apple.eawt.AppReOpenedListener, com.apple.eawt.OpenFilesHandler, com.apple.eawt.PreferencesHandler, com.apple.eawt.PrintFilesHandler, com.apple.eawt.QuitHandler, com.apple.eawt.ScreenSleepListener, com.apple.eawt.SystemSleepListener, com.apple.eawt.UserSessionListener

    public class MacOSAppEventDispatcher
    extends Object
    implements com.apple.eawt.AboutHandler, com.apple.eawt.AppForegroundListener, com.apple.eawt.AppHiddenListener, com.apple.eawt.AppReOpenedListener, com.apple.eawt.PreferencesHandler, com.apple.eawt.PrintFilesHandler, com.apple.eawt.QuitHandler, com.apple.eawt.ScreenSleepListener, com.apple.eawt.SystemSleepListener, com.apple.eawt.UserSessionListener, com.apple.eawt.OpenFilesHandler
    Rebroadcasts macOS application events as SciJava events.
    Author:
    Curtis Rueden
    • Constructor Detail

      • MacOSAppEventDispatcher

        public MacOSAppEventDispatcher​(org.scijava.event.EventService eventService)
      • MacOSAppEventDispatcher

        public MacOSAppEventDispatcher​(com.apple.eawt.Application app,
                                       org.scijava.event.EventService eventService)
    • Method Detail

      • handleAbout

        public void handleAbout​(com.apple.eawt.AppEvent.AboutEvent e)
        Specified by:
        handleAbout in interface com.apple.eawt.AboutHandler
      • handlePreferences

        public void handlePreferences​(com.apple.eawt.AppEvent.PreferencesEvent e)
        Specified by:
        handlePreferences in interface com.apple.eawt.PreferencesHandler
      • printFiles

        public void printFiles​(com.apple.eawt.AppEvent.PrintFilesEvent e)
        Specified by:
        printFiles in interface com.apple.eawt.PrintFilesHandler
      • handleQuitRequestWith

        public void handleQuitRequestWith​(com.apple.eawt.AppEvent.QuitEvent e,
                                          com.apple.eawt.QuitResponse r)
        Specified by:
        handleQuitRequestWith in interface com.apple.eawt.QuitHandler
      • userSessionActivated

        public void userSessionActivated​(com.apple.eawt.AppEvent.UserSessionEvent e)
        Specified by:
        userSessionActivated in interface com.apple.eawt.UserSessionListener
      • userSessionDeactivated

        public void userSessionDeactivated​(com.apple.eawt.AppEvent.UserSessionEvent e)
        Specified by:
        userSessionDeactivated in interface com.apple.eawt.UserSessionListener
      • systemAboutToSleep

        public void systemAboutToSleep​(com.apple.eawt.AppEvent.SystemSleepEvent e)
        Specified by:
        systemAboutToSleep in interface com.apple.eawt.SystemSleepListener
      • systemAwoke

        public void systemAwoke​(com.apple.eawt.AppEvent.SystemSleepEvent e)
      • systemAweoke

        public void systemAweoke​(com.apple.eawt.AppEvent.SystemSleepEvent e)
        Specified by:
        systemAweoke in interface com.apple.eawt.SystemSleepListener
      • screenAboutToSleep

        public void screenAboutToSleep​(com.apple.eawt.AppEvent.ScreenSleepEvent e)
        Specified by:
        screenAboutToSleep in interface com.apple.eawt.ScreenSleepListener
      • screenAwoke

        public void screenAwoke​(com.apple.eawt.AppEvent.ScreenSleepEvent e)
        Specified by:
        screenAwoke in interface com.apple.eawt.ScreenSleepListener
      • appHidden

        public void appHidden​(com.apple.eawt.AppEvent.AppHiddenEvent e)
        Specified by:
        appHidden in interface com.apple.eawt.AppHiddenListener
      • appUnhidden

        public void appUnhidden​(com.apple.eawt.AppEvent.AppHiddenEvent e)
        Specified by:
        appUnhidden in interface com.apple.eawt.AppHiddenListener
      • appMovedToBackground

        public void appMovedToBackground​(com.apple.eawt.AppEvent.AppForegroundEvent e)
        Specified by:
        appMovedToBackground in interface com.apple.eawt.AppForegroundListener
      • appRaisedToForeground

        public void appRaisedToForeground​(com.apple.eawt.AppEvent.AppForegroundEvent e)
        Specified by:
        appRaisedToForeground in interface com.apple.eawt.AppForegroundListener
      • appReOpened

        public void appReOpened​(com.apple.eawt.AppEvent.AppReOpenedEvent e)
        Specified by:
        appReOpened in interface com.apple.eawt.AppReOpenedListener
      • openFiles

        public void openFiles​(com.apple.eawt.AppEvent.OpenFilesEvent event)
        Specified by:
        openFiles in interface com.apple.eawt.OpenFilesHandler