|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.util.Platform
public final class Platform
Understands platform-specific functionality.
| Method Summary | |
|---|---|
static boolean |
canMoveWindows()
Indicates whether it is possible to move windows that are not an instance of or
. |
static boolean |
canResizeWindows()
Indicates whether it is possible to resize windows that are not an instance of
or . |
static int |
controlOrCommandKey()
Return the modifier key for the appropriate accelerator key for menu shortcuts: (default) or (MacOS.) |
static int |
controlOrCommandMask()
Return the modifier mask for the appropriate accelerator key for menu shortcuts: (default) or (MacOS.) |
static boolean |
isHPUX()
Indicates whether the operating system is HP-UX. |
static boolean |
isLinux()
Indicates whether the operating system is Linux. |
static boolean |
isMacintosh()
Indicates whether the operating system is a Macintosh OS. |
static boolean |
isOSX()
Indicates whether the operating system is Mac OS X. |
static boolean |
isSolaris()
Indicates whether the operating system is Solaris. |
static boolean |
isWindows()
Indicates whether the operating system is Windows. |
static boolean |
isWindows9x()
Indicates whether the operating system is Windows 9x (95, 98 or ME.) |
static boolean |
isWindowsXP()
Indicates whether the operating system is Windows XP. |
static boolean |
isX11()
Indicates whether the operating system is using the X11 Windowing system. |
static OSFamily |
osFamily()
Returns the current operating system family. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int controlOrCommandKey()
KeyEvent.VK_CONTROL (default) or KeyEvent.VK_META (MacOS.)
AssertionError - if unable to find the appropriate key.
HeadlessException - if GraphicsEnvironment.isHeadless().public static int controlOrCommandMask()
Event.CTRL_MASK (default) or Event.META_MASK (MacOS.)
HeadlessException - if GraphicsEnvironment.isHeadless().public static boolean canResizeWindows()
Frame
or Dialog. Most X11 window managers will allow this, but stock Macintosh and Windows
do not.
true if it is possible to resize windows other than Frames or
Dialogs, false otherwise.public static boolean canMoveWindows()
Frame or
Dialog. Most X11 window managers will allow this, but stock Macintosh and Windows do
not.
true if it is possible to move windows other than Frames or Dialogs,
false otherwise.public static boolean isWindows()
true if the operation system is Windows, false otherwise.public static boolean isWindows9x()
true if the operating system is Windows 9x (95, 98 or ME,) false otherwise.public static boolean isWindowsXP()
true if the operating system is Windows XP, false otherwise.public static boolean isMacintosh()
true is the operating system is a Macintosh OS, false otherwise.public static boolean isOSX()
true if the operating system is Mac OS X, false otherwise.public static boolean isX11()
true if the operating system is using the X11 Windowing system, false otherwise.public static boolean isSolaris()
true if the operating system is Solaris, false otherwise.public static boolean isHPUX()
true if the operating system is HP-UX, false otherwise.public static boolean isLinux()
true if the operating system is Linux, false otherwise.public static OSFamily osFamily()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||