|
org.openide.awt 7.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=SOURCE) @Target(value={TYPE,FIELD,METHOD}) public @interface ActionReference
Registers an action under associated identifier specified by separate
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 types
Required Element Summary | |
---|---|
String |
path
Into which location one wants to place the reference? Translates to FileUtil.getConfigFile(java.lang.String) . |
Optional Element Summary | |
---|---|
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? |
Element Detail |
---|
public abstract String path
FileUtil.getConfigFile(java.lang.String)
.
public abstract int position
public abstract ActionID id
ActionID
peer annotation, but
in case one was to create references to actions defined by someone else,
one can specify the id() here.
public abstract String name
ActionID
.
public abstract int separatorBefore
position()
public abstract int separatorAfter
position()
|
org.openide.awt 7.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |