JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj
Class MRJApplicationUtils

java.lang.Object
  |
  +--com.apple.mrj.MRJApplicationUtils

public class MRJApplicationUtils
extends Object


Constructor Summary
MRJApplicationUtils()
           
 
Method Summary
static boolean isMRJToolkitAvailable()
          Returns a boolean "true" if MRJToolkit is installed on this Mac OS computer
static void registerAboutHandler(MRJAboutHandler handler)
          Register an object that will be notified when the About menu item is chosen.
static void registerOpenApplicationHandler(MRJOpenApplicationHandler handler)
          Register an object that will be called when the application is launched by itself with no files.
static void registerOpenDocumentHandler(MRJOpenDocumentHandler handler)
          Register an object that will be called when an a file is dropped on this application from the Finder.
static void registerPrefsHandler(MRJPrefsHandler handler)
          Register an object that will be called when someone chooses "Preferences" from the Application Menu.
static void registerPrintDocumentHandler(MRJPrintDocumentHandler handler)
          Register an object that will be called when the Finder requests that a document created by this application be printed.
static void registerQuitHandler(MRJQuitHandler handler)
          Register an object that will be called when someone chooses "Quit" from the Apple Menu, or when the system requests that the application exit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRJApplicationUtils

public MRJApplicationUtils()
Method Detail

isMRJToolkitAvailable

public static final boolean isMRJToolkitAvailable()
Returns a boolean "true" if MRJToolkit is installed on this Mac OS computer

registerAboutHandler

public static final void registerAboutHandler(MRJAboutHandler handler)
Register an object that will be notified when the About menu item is chosen.

registerOpenApplicationHandler

public static final void registerOpenApplicationHandler(MRJOpenApplicationHandler handler)
Register an object that will be called when the application is launched by itself with no files. The usual response to this, in a document-oriented application, would be to open an empty "untitled" document.

registerOpenDocumentHandler

public static final void registerOpenDocumentHandler(MRJOpenDocumentHandler handler)
Register an object that will be called when an a file is dropped on this application from the Finder. The file is passed as a parameter to the method implemented.

registerPrintDocumentHandler

public static final void registerPrintDocumentHandler(MRJPrintDocumentHandler handler)
Register an object that will be called when the Finder requests that a document created by this application be printed. You may not be able to implement this because of the lack of printing support.

registerQuitHandler

public static final void registerQuitHandler(MRJQuitHandler handler)
Register an object that will be called when someone chooses "Quit" from the Apple Menu, or when the system requests that the application exit. You can decide to shutdown the runtime by calling System.exit().

registerPrefsHandler

public static final void registerPrefsHandler(MRJPrefsHandler handler)
Register an object that will be called when someone chooses "Preferences" from the Application Menu.

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.