Overview  Package   Class  Tree  Index 

be.lassi.ui.util.mac
Class MacApplication

java.lang.Object
  extended by be.lassi.ui.util.mac.MacApplication

public class MacApplication
extends java.lang.Object

Represents this application when running on Mac OS X. Uses reflection to provide access to com.apple.eawt.Application, so that our code compiles, even in environments where Application is not available.


Field Summary
static boolean MAC
          Indicates whether we are running on the Mac OSX operating system.
 
Constructor Summary
MacApplication()
          Constructs a new instance.
 
Method Summary
 void addApplicationListener(MacApplicationListener listener)
          Adds an Mac application event handler.
static boolean isMac()
          Indicates whether we are currently running on Mac operating system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAC

public static boolean MAC
Indicates whether we are running on the Mac OSX operating system.

Constructor Detail

MacApplication

public MacApplication()
               throws java.lang.Exception
Constructs a new instance.

Throws:
java.lang.Exception - if problem
Method Detail

addApplicationListener

public void addApplicationListener(MacApplicationListener listener)
Adds an Mac application event handler.

Parameters:
listener - the Mac application event handler to be added

isMac

public static boolean isMac()
Indicates whether we are currently running on Mac operating system.

Returns:
true if running on Mac

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2