home *** CD-ROM | disk | FTP | other *** search
- package com.zerog.lax;
-
- import com.apple.mrj.MRJAboutHandler;
- import com.apple.mrj.MRJApplicationUtils;
- import com.apple.mrj.MRJOpenDocumentHandler;
- import com.apple.mrj.MRJPrintDocumentHandler;
- import com.apple.mrj.MRJQuitHandler;
- import java.io.File;
-
- class ZGMRJAppEventUtils implements MRJAboutHandler, MRJOpenDocumentHandler, MRJPrintDocumentHandler, MRJQuitHandler {
- private static ZGMRJAppEventUtils thisInstance = new ZGMRJAppEventUtils();
-
- private ZGMRJAppEventUtils() {
- new Integer(4);
- new StringBuffer();
- }
-
- public void handleAbout() {
- new Integer(4);
- new StringBuffer();
- ZGAppEventUtils.appEvent(1);
- }
-
- public void handleQuit() {
- new Integer(4);
- new StringBuffer();
- ZGAppEventUtils.appEvent(2);
- }
-
- public void handleOpenFile(File var1) {
- new Integer(4);
- new StringBuffer();
- ZGAppEventUtils.fileEvent(3, var1.getPath());
- }
-
- public void handlePrintFile(File var1) {
- new Integer(4);
- new StringBuffer();
- ZGAppEventUtils.fileEvent(4, var1.getPath());
- }
-
- protected static void registerWithMRJ() throws ClassNotFoundException {
- new Integer(4);
- new StringBuffer();
- if (MRJApplicationUtils.isMRJToolkitAvailable()) {
- MRJApplicationUtils.registerAboutHandler(thisInstance);
- MRJApplicationUtils.registerOpenDocumentHandler(thisInstance);
- MRJApplicationUtils.registerPrintDocumentHandler(thisInstance);
- MRJApplicationUtils.registerQuitHandler(thisInstance);
- } else {
- throw new ClassNotFoundException("MRJToolkit Not Available");
- }
- }
- }
-