|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.util.Modes
public final class Modes
A typesafe enumeration for a bunch of Mode
s useful for
handling differences between platforms and looks.
Note that some values require access to protected System properties
that are only readable in safe environments.
The available modes are:
Name | Meaning |
ALWAYS |
Enabled on all operating systems and look&feels |
NEVER |
Disabled on all operating systems and look&feels |
LAF_AQUA |
Enabled for the Mac OS X Aqua L&F only, disabled for all other l&fs |
LAF_WINDOWS |
Enabled for the Windows L&Fs, disabled for all other l&fs |
LAF_NON_AQUA |
Disabled for the Mac OS X Aqua L&F only, enabled for all other l&fs |
LAF_NON_WINDOWS |
Disabled for the Windows L&Fs, enabled for all other l&fs |
OS_LINUX |
Enabled on Linux only, disabled on all other platforms |
OS_MAC |
Enabled on Mac OS only, disabled on all other platforms |
OS_WINDOWS |
Enabled on Windows only, disabled on all other platforms |
OS_NON_LINUX |
Disabled on LINUX only, enabled on all other platforms |
OS_NON_MAC |
Disabled on Mac OS only, enabled on all other platforms |
OS_NON_WINDOWS |
Disabled on Windows only, enabled on all other platforms |
Field Summary | |
---|---|
static Modes |
ALWAYS
Describes a mode that is always enabled. |
static Modes |
LAF_AQUA
Describes a mode that is enabled if and only if the current look&feel is the Mac OS X Aqua look&feel. |
static Modes |
LAF_NON_AQUA
Describes a mode that is enabled if and only if the current look&feel is not the Mac OS X Aqua look&feel. |
static Modes |
LAF_NON_WINDOWS
Describes a mode that is enabled if and only if the current look&feel is not a Windows look&feel. |
static Modes |
LAF_WINDOWS
Describes a mode that is enabled if and only if the current look&feel is a Windows look&feel. |
static Modes |
NEVER
Describes a mode that is always disabled. |
static Modes |
OS_LINUX
Describes a mode that is enabled if and only if the OS is Linux. |
static Modes |
OS_MAC
Describes a mode that is enabled if and only if the OS is Mac. |
static Modes |
OS_NON_LINUX
Describes a mode that is enabled if and only if the OS is not Linux. |
static Modes |
OS_NON_MAC
Describes a mode that is enabled if and only if the OS is not Mac. |
static Modes |
OS_NON_WINDOWS
Describes a mode that is enabled if and only if the OS is not Windows. |
static Modes |
OS_WINDOWS
Describes a mode that is enabled if and only if the OS is Windows. |
Method Summary | |
---|---|
boolean |
enabled()
Checks and answers whether this mode is enabled or disabled. |
static boolean |
isLafAqua()
Lazily checks and answers whether the Aqua look&feel is active. |
static boolean |
isLafWindows()
Lazily checks and answers whether the Windows look&feel is active. |
String |
toString()
Returns a human readable string representation for this mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Modes ALWAYS
public static final Modes NEVER
public static final Modes LAF_AQUA
public static final Modes LAF_WINDOWS
public static final Modes LAF_NON_AQUA
public static final Modes LAF_NON_WINDOWS
public static final Modes OS_MAC
public static final Modes OS_WINDOWS
public static final Modes OS_NON_MAC
public static final Modes OS_NON_WINDOWS
public static final Modes OS_LINUX
public static final Modes OS_NON_LINUX
Method Detail |
---|
public boolean enabled()
enabled
in interface Mode
public String toString()
toString
in class Object
public static boolean isLafAqua()
public static boolean isLafWindows()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |