org.vizzini.ui
Class OSXAdapter

java.lang.Object
  extended by com.apple.eawt.ApplicationAdapter
      extended by org.vizzini.ui.OSXAdapter
All Implemented Interfaces:
com.apple.eawt.ApplicationListener, EventListener

public class OSXAdapter
extends com.apple.eawt.ApplicationAdapter

Provices an adapter for OS X applications. Modifed 04.02.03 to use an application interface IOSXApp, and place in the package org.vizzini.ui.

Since:
v0.1
Version:
v0.1
Author:
Jeffrey M. Thompson

Method Summary
static void enablePrefs(boolean enabled)
          Another static entry point for EAWT functionality.
 void handleAbout(com.apple.eawt.ApplicationEvent event)
          Implemented handler methods.
 void handlePreferences(com.apple.eawt.ApplicationEvent event)
          Implemented handler methods.
 void handleQuit(com.apple.eawt.ApplicationEvent event)
          Implemented handler methods.
static void registerMacOSXApplication(IOSXApp inApp)
          The main entry-point for this functionality.
 
Methods inherited from class com.apple.eawt.ApplicationAdapter
handleOpenApplication, handleOpenFile, handlePrintFile, handleReOpenApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

enablePrefs

public static void enablePrefs(boolean enabled)
Another static entry point for EAWT functionality. Enables the "Preferences..." menu item in the application menu.


handleAbout

public void handleAbout(com.apple.eawt.ApplicationEvent event)
Implemented handler methods. These are basically hooks into existing functionality from the main app, as if it came over from another platform.

Specified by:
handleAbout in interface com.apple.eawt.ApplicationListener
Overrides:
handleAbout in class com.apple.eawt.ApplicationAdapter

handlePreferences

public void handlePreferences(com.apple.eawt.ApplicationEvent event)
Implemented handler methods. These are basically hooks into existing functionality from the main app, as if it came over from another platform.

Specified by:
handlePreferences in interface com.apple.eawt.ApplicationListener
Overrides:
handlePreferences in class com.apple.eawt.ApplicationAdapter

handleQuit

public void handleQuit(com.apple.eawt.ApplicationEvent event)
Implemented handler methods. These are basically hooks into existing functionality from the main app, as if it came over from another platform.

Specified by:
handleQuit in interface com.apple.eawt.ApplicationListener
Overrides:
handleQuit in class com.apple.eawt.ApplicationAdapter

registerMacOSXApplication

public static void registerMacOSXApplication(IOSXApp inApp)
The main entry-point for this functionality. This is the only method that needs to be called at runtime, and it can easily be done using reflection (see MyApp.java)



Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02