endrov.macBinding
Class OSXAdapter

java.lang.Object
  extended by com.apple.eawt.ApplicationAdapter
      extended by endrov.macBinding.OSXAdapter
All Implemented Interfaces:
com.apple.eawt.ApplicationListener

public class OSXAdapter
extends com.apple.eawt.ApplicationAdapter


Constructor Summary
OSXAdapter()
           
 
Method Summary
static void enablePrefs(boolean enabled)
          Another static entry point for EAWT functionality.
 void handleAbout(com.apple.eawt.ApplicationEvent ae)
          Invoked on Apple -> About
 void handleOpenFile(java.io.File f)
          Invoked on file drag to bundle
 void handlePreferences(com.apple.eawt.ApplicationEvent ae)
          Invoked on Apple -> Preferences
 void handleQuit(com.apple.eawt.ApplicationEvent ae)
          Invoked on Apple -> Quit
static void initPlugin()
          Plugin declaration
static void registerMacOSXApplication()
          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
 

Constructor Detail

OSXAdapter

public OSXAdapter()
Method Detail

registerMacOSXApplication

public static void registerMacOSXApplication()
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


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 ae)
Invoked on Apple -> About

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 ae)
Invoked on Apple -> Preferences

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 ae)
Invoked on Apple -> Quit

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

handleOpenFile

public void handleOpenFile(java.io.File f)
Invoked on file drag to bundle


initPlugin

public static void initPlugin()
Plugin declaration