|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={}) public @interface Menu
One item of a Plugin
's menu path. It can be a top-level menu such as
File, a nested menu such as Open Recent, or a leaf item such as Exit. A
sequential list of Menus defines a Plugin
's position in the menu
structure.
Using a list of Menus to define menu position is more verbose than using
Plugin.menuPath()
, but more powerful in that it allows specification of
various menu attributes (e.g., weight()
, mnemonic()
,
accelerator()
and iconPath()
).
Required Element Summary | |
---|---|
String |
label
The human-readable label to use for the menu item. |
Optional Element Summary | |
---|---|
String |
accelerator
Keyboard shortcut to activate the menu item. |
String |
iconPath
Path to the menu's icon (shown in the menu structure). |
char |
mnemonic
Mnemonic identifying underlined shortcut character. |
double |
weight
Position within the menu structure. |
Element Detail |
---|
public abstract String label
public abstract double weight
public abstract char mnemonic
public abstract String accelerator
for information on the syntax.
public abstract String iconPath
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |