net.roydesign.mac.AppleEventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mrjadapter Show documentation
Show all versions of mrjadapter Show documentation
MRJ Adapter is a wrapper around built in Java Virtual Machine APIs provided by Apple.
The newest version!
/*******************************************************************************
File: AppleEventHandler.java
Author: Steve Roy
Part of MRJ Adapter, a unified API for easy integration of Mac OS specific
functionality within your cross-platform Java application.
This library is open source and can be modified and/or distributed under
the terms of the Artistic License.
Change History:
02/05/03 Created this file - Steve
*******************************************************************************/
package net.roydesign.mac;
/**
* This interface is implemented by objects that wish to be notified of
* incoming Apple events. This is only currently implemented to handle
* the Preferences menu item on MRJ 3.0 and 3.1. The fact that it is public
* is just a byproduct of this implementation and by no means indicates
* any built-in support for handling arbitrary Apple events by your
* application.
*
* @version MRJ Adapter 1.2
*/
@FunctionalInterface
public interface AppleEventHandler
{
/**
* Handle an incoming Apple event.
* @param event a native pointer to the Apple event
* @param reply a native pointer to the event reply
* @param refcon the application-defined reference constant
*/
short handleEvent(int event, int reply, int refcon);
}