|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtuosotechnologies.lib.platform.PlatformUtils
Utilities for dealing with cross-platform issues.
Field Summary | |
static String[] |
DEFAULT_PROVIDERNAMES
An array of provider names that the initialize() method will attempt to install by default. |
static String |
MAC_OS_X_PROVIDERNAME
Name of the Mac OS X PlatformProvider |
static PlatformEvent.Type |
OPEN_ABOUTBOX_EVENT
Event type for open about box. |
static PlatformEvent.Type |
OPEN_HELP_EVENT
Event type for open help. |
static PlatformEvent.Type |
OPEN_PREFERENCES_EVENT
Event type for open preferences. |
static PlatformEvent.Type |
QUIT_EVENT
Event type for request quit. |
Method Summary | |
static void |
initialize()
Initialize the platform mechanism, adding all the default providers specified by DEFAULT_PROVIDERNAMES. |
static boolean |
isSystemPreferencesMenuItemEnabled()
Returns true if there is a system-provided "Preferences" menu item and it is enabled. |
static boolean |
isUsingMacOSXScreenMenuBar()
Returns true if swing menu bars are currently being merged into the Mac OS X screen-wide menu bar. |
static boolean |
setSystemPreferencesMenuItemEnabled(boolean enabled)
Enable or disable the system-provided "Preferences" menu item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final PlatformEvent.Type QUIT_EVENT
public static final PlatformEvent.Type OPEN_ABOUTBOX_EVENT
public static final PlatformEvent.Type OPEN_PREFERENCES_EVENT
public static final PlatformEvent.Type OPEN_HELP_EVENT
public static final String MAC_OS_X_PROVIDERNAME
public static final String[] DEFAULT_PROVIDERNAMES
Method Detail |
public static void initialize()
public static boolean isUsingMacOSXScreenMenuBar()
public static boolean isSystemPreferencesMenuItemEnabled()
public static boolean setSystemPreferencesMenuItemEnabled(boolean enabled)
enabled
- true to enable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |