com.muchsoft.util.mac
Class Java13Adapter

java.lang.Object
  extended bycom.muchsoft.util.mac.Java13Adapter
All Implemented Interfaces:
Java13Handler

public class Java13Adapter
extends java.lang.Object
implements Java13Handler

This class registers several callback hooks for Apple's Java 1.3 extensions. Although it makes internal use of system dependant classes, usage of this class is portable. Call registerJava13Handler to register the object that receives notifications whenever one of the defined Mac OS X GUI events happens.

Version History:

2004-10-13
First public release.

Version:
2004-10-13
Author:
Thomas Much

Constructor Summary
Java13Adapter()
           
 
Method Summary
 void handleAbout()
          An empty implementation for Java13Handler.handleAbout().
 void handleOpenApplication()
          An empty implementation for Java13Handler.handleOpenApplication().
 void handleOpenFile(java.io.File file)
          An empty implementation for Java13Handler.handleOpenFile(java.io.File).
 void handlePrefs()
          An empty implementation for Java13Handler.handlePrefs().
 void handlePrintFile(java.io.File file)
          An empty implementation for Java13Handler.handlePrintFile(java.io.File).
 void handleQuit()
          An empty implementation for Java13Handler.handleQuit().
static void registerJava13Handler(Java13Handler handler)
          Registers a callback object that implements Java13Handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java13Adapter

public Java13Adapter()
Method Detail

handleAbout

public void handleAbout()
An empty implementation for Java13Handler.handleAbout().

Specified by:
handleAbout in interface Java13Handler
See Also:
com.apple.mrj.MRJAboutHandler

handlePrefs

public void handlePrefs()
An empty implementation for Java13Handler.handlePrefs().

Specified by:
handlePrefs in interface Java13Handler
See Also:
com.apple.mrj.MRJPrefsHandler

handleQuit

public void handleQuit()
An empty implementation for Java13Handler.handleQuit().

Specified by:
handleQuit in interface Java13Handler
See Also:
com.apple.mrj.MRJQuitHandler

handleOpenApplication

public void handleOpenApplication()
An empty implementation for Java13Handler.handleOpenApplication().

Specified by:
handleOpenApplication in interface Java13Handler
See Also:
com.apple.mrj.MRJOpenApplicationHandler

handleOpenFile

public void handleOpenFile(java.io.File file)
An empty implementation for Java13Handler.handleOpenFile(java.io.File).

Specified by:
handleOpenFile in interface Java13Handler
See Also:
com.apple.mrj.MRJOpenDocumentHandler

handlePrintFile

public void handlePrintFile(java.io.File file)
An empty implementation for Java13Handler.handlePrintFile(java.io.File).

Specified by:
handlePrintFile in interface Java13Handler
See Also:
com.apple.mrj.MRJPrintDocumentHandler

registerJava13Handler

public static void registerJava13Handler(Java13Handler handler)
Registers a callback object that implements Java13Handler.

Parameters:
handler - the object that receives the defined Mac OS X GUI events
Throws:
java.lang.IllegalArgumentException - if handler is the null reference
See Also:
com.apple.mrj.MRJApplicationUtils