@Retention(SOURCE) @Target({TYPE,FIELD,METHOD}) public @interface ActionReference
ActionID
annotation on the same element. Usually it is used together
with ActionRegistration
. You can place your action reference into
any path, here are few typical locations:
path="Menu/File"
, path="Menu/Edit"
, etc.path="Toolbars/Edit"
and other peer directoriespath="Shortcuts" name="C-F2 D-A"
, see Utilities.stringToKeys(java.lang.String)
and Utilities.stringToKey(java.lang.String)
for description of valid reference namespath="Loaders/text/xml"
, and other mime typesModifier and Type | Required Element | Description |
---|---|---|
String |
path |
Into which location one wants to place the reference?
Translates to
FileUtil.getConfigFile(java.lang.String) . |
Modifier and Type | Optional Element | Description |
---|---|---|
ActionID |
id |
Identification of the action this reference shall point to.
|
String |
name |
One can specify name of the reference.
|
int |
position |
Position in the location.
|
int |
separatorAfter |
Shall a separator be placed after the action?
|
int |
separatorBefore |
Shall a separator be placed before the action?
|
String path
FileUtil.getConfigFile(java.lang.String)
.int separatorBefore
position()
int separatorAfter
position()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.