@Retention(value=SOURCE) @Target(value={TYPE,METHOD}) public @interface EditorActionRegistrations
EditorActionRegistration
annotations.
@EditorActionRegistrations({ @EditorActionRegistration(name = "name1", ...),
@EditorActionRegistration(name = "name2", ...)
})
public class MultiAction extends BaseAction {
public void actionPerformed(ActionEvent evt) {
if ("name1".equals(getValue(Action.NAME))) {
// behavior for "name1"
} else {
// behavior for "name2"
}
}
}
Modifier and Type | Required Element and Description |
---|---|
EditorActionRegistration[] |
value |
public abstract EditorActionRegistration[] value