public class DefaultActionFactory extends java.lang.Object implements AnnotatedActionFactory
AnnotatedActionFactory to be used when no alternative has been specified. This class creates
instances of AnnotatedAction.| Constructor and Description |
|---|
DefaultActionFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureAction(ActionProxy annotation,
AnnotatedAction action)
Configures the newly-created action before it is returned to
ActionMap. |
AnnotatedAction |
createAction(ActionProxy annotation,
java.lang.reflect.Method method,
java.lang.Object target)
Create an
AnnotatedAction. |
protected javafx.scene.Node |
resolveGraphic(ActionProxy annotation)
Resolve the graphical representation of this action.
|
public AnnotatedAction createAction(ActionProxy annotation, java.lang.reflect.Method method, java.lang.Object target)
AnnotatedAction. This method is called by ActionMap.register(java.lang.Object).createAction in interface AnnotatedActionFactoryannotation - The annotation specified on the method.method - The method to be invoked when an action is fired.target - The target object on which the method will be invoked.AnnotatedAction instance.protected void configureAction(ActionProxy annotation, AnnotatedAction action)
ActionMap. Subclasses can override this method
to change configuration behavior.annotation - The annotation specified on the method.action - The newly-created action.protected javafx.scene.Node resolveGraphic(ActionProxy annotation)
ActionProxy.graphic(), but subclasses can override this method to provide alternative behavior.annotation - The annotation specified on the method.