Package ffx.ui

Class OSXAdapter

java.lang.Object
ffx.ui.OSXAdapter
All Implemented Interfaces:
com.apple.mrj.MRJAboutHandler, com.apple.mrj.MRJOpenDocumentHandler, com.apple.mrj.MRJPrefsHandler, com.apple.mrj.MRJQuitHandler

public class OSXAdapter extends Object implements com.apple.mrj.MRJAboutHandler, com.apple.mrj.MRJOpenDocumentHandler, com.apple.mrj.MRJQuitHandler, com.apple.mrj.MRJPrefsHandler
The OSXAdapter class was developed by following an example supplied on the OS X site. It handles events generated by the following standard OS X toolbar items: About, Preferences, Quit and File Associations
Author:
Michael J. Schnieders
  • Constructor Details

    • OSXAdapter

      public OSXAdapter(MainPanel m)
  • Method Details

    • setOSXProperties

      public static void setOSXProperties()
      Set Mac OS X Systems Properties to promote native integration. How soon do these need to be set to be recognized?
    • handleAbout

      public void handleAbout()
      Specified by:
      handleAbout in interface com.apple.mrj.MRJAboutHandler
    • handleOpenFile

      public void handleOpenFile(File file)
      Specified by:
      handleOpenFile in interface com.apple.mrj.MRJOpenDocumentHandler
    • handlePrefs

      public void handlePrefs()
      Specified by:
      handlePrefs in interface com.apple.mrj.MRJPrefsHandler
    • handleQuit

      public void handleQuit()
      Specified by:
      handleQuit in interface com.apple.mrj.MRJQuitHandler
    • toString

      public String toString()
      Overrides:
      toString in class Object