Apple Java Extensions

com.apple.eawt
Interface AppForegroundListener

All Superinterfaces:
AppEventListener

public interface AppForegroundListener
extends AppEventListener

Implementors are notified when the app becomes the foreground app and when it resigns being the foreground app. This notification is useful for hiding and showing transient UI like palette windows which should be hidden when the app is in the background.

Since:
Java for Mac OS X 10.6 Update 3, Java for Mac OS X 10.5 Update 8
See Also:
Application.addAppEventListener(AppEventListener)

Method Summary
 void appMovedToBackground(AppEvent.AppForegroundEvent e)
          Called when the app resigns to the background and another app becomes the foreground app.
 void appRaisedToForeground(AppEvent.AppForegroundEvent e)
          Called when the app becomes the foreground app.
 

Method Detail

appRaisedToForeground

void appRaisedToForeground(AppEvent.AppForegroundEvent e)
Called when the app becomes the foreground app.

Parameters:
e - the app became foreground notification.

appMovedToBackground

void appMovedToBackground(AppEvent.AppForegroundEvent e)
Called when the app resigns to the background and another app becomes the foreground app.

Parameters:
e - the app resigned foreground notification.

Apple Java Extensions

To file bugs or suggest feature enhancements for the Java implementation in Mac OS X, visit the Apple Developer Connection Bug Reporter website. File bugs under the Java (new bugs) component, version X.

Additional documentation for Java development on Mac OS X is available online at the Java Developer Documentation website.

© Apple Computer, Inc. October 2010