jautil.platform
Class OpSystem
java.lang.Object
jautil.platform.OpSystem
public class OpSystem
- extends java.lang.Object
This class encapsulates Operating-System specific data.
At present, the OS's supported are Windows XP/2000 and
MacOS X.
Method Summary |
static boolean |
IS_MAC()
|
static boolean |
IS_WIN()
|
static java.lang.String |
nativeLibName(java.lang.String libname)
On Windows, converts the given native library name to lower-case,
but leaves it unchanged on Mac OS X. |
static void |
registerMacOSXQuitter(java.lang.Runnable quitter)
|
static java.lang.String |
TAG_ID(java.lang.String id)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WIN_SYSTEM
public static final int WIN_SYSTEM
- See Also:
- Constant Field Values
MAC_SYSTEM
public static final int MAC_SYSTEM
- See Also:
- Constant Field Values
CTRL_MODIFIER_MASK
public static final int CTRL_MODIFIER_MASK
SHIFT_MODIFIER_MASK
public static final int SHIFT_MODIFIER_MASK
- See Also:
- Constant Field Values
OpSystem
public OpSystem()
IS_WIN
public static final boolean IS_WIN()
IS_MAC
public static final boolean IS_MAC()
TAG_ID
public static final java.lang.String TAG_ID(java.lang.String id)
nativeLibName
public static final java.lang.String nativeLibName(java.lang.String libname)
- On Windows, converts the given native library name to lower-case,
but leaves it unchanged on Mac OS X.
This has only become necessary with the advent of the JNLP applet
launcher whose native library loader is more exacting than the standard
JNI loader, which works OK with names exclusively in lower case (even
when the actual library file name is mixed case, as it is on Mac OS X).
registerMacOSXQuitter
public static void registerMacOSXQuitter(java.lang.Runnable quitter)