public static enum MacOSXMenuAdapter.OSXCOMMAND extends java.lang.Enum<MacOSXMenuAdapter.OSXCOMMAND>
ApplicationListener
interface. Use them with method
registerEventHandler()
to register one or more ActionnListener that should handle the call.Enum Constant and Description |
---|
About
Called when the user selects the About item in the application menu.
|
OpenApplication
Called when the application is started.
|
OpenFile
Called when the application receives an Open Document event from the Finder or another application.
|
Preferences
Called when the Preference item in the application menu is selected.
|
PrintFile
Called when the application is sent a request to print a particular file or files.
|
Quit
Called when the application is about to shut down.
|
ReOpenApplication
Called when the minimized application regains the focus.
|
Modifier and Type | Method and Description |
---|---|
static MacOSXMenuAdapter.OSXCOMMAND |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MacOSXMenuAdapter.OSXCOMMAND[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MacOSXMenuAdapter.OSXCOMMAND About
public static final MacOSXMenuAdapter.OSXCOMMAND OpenApplication
public static final MacOSXMenuAdapter.OSXCOMMAND OpenFile
public static final MacOSXMenuAdapter.OSXCOMMAND Preferences
public static final MacOSXMenuAdapter.OSXCOMMAND PrintFile
public static final MacOSXMenuAdapter.OSXCOMMAND Quit
public static final MacOSXMenuAdapter.OSXCOMMAND ReOpenApplication
public static MacOSXMenuAdapter.OSXCOMMAND[] values()
for (MacOSXMenuAdapter.OSXCOMMAND c : MacOSXMenuAdapter.OSXCOMMAND.values()) System.out.println(c);
public static MacOSXMenuAdapter.OSXCOMMAND valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null