Top Description Constructors Methods
org.controlsfx.control.action

public Class DefaultActionFactory

extends Object
implements AnnotatedActionFactory
Class Inheritance
All Implemented Interfaces
org.controlsfx.control.action.AnnotatedActionFactory
Imports
javafx.scene.Node, javafx.scene.image.Image, .ImageView, javafx.scene.input.KeyCombination, org.controlsfx.glyphfont.Glyph, java.lang.reflect.Method

The default AnnotatedActionFactory to be used when no alternative has been specified. This class creates instances of AnnotatedAction.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
configureAction(ActionProxy
The annotation specified on the method.
annotation
,
AnnotatedAction
The newly-created action.
action
)

Configures the newly-created action before it is returned to ActionMap.

public AnnotatedAction

Returns:

An AnnotatedAction instance.
createAction
(ActionProxy
The annotation specified on the method.
annotation
,
Method
The method to be invoked when an action is fired.
method
,
Object
The target object on which the method will be invoked.
target
)

Implements org.controlsfx.control.action.AnnotatedActionFactory.createAction.

Create an AnnotatedAction.

protected Node

Returns:

A JavaFX Node for the graphic associated with this action.
resolveGraphic
(ActionProxy
The annotation specified on the method.
annotation
)

Resolve the graphical representation of this action.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultActionFactoryback to summary
public DefaultActionFactory()

Method Detail

configureActionback to summary
protected void configureAction(ActionProxy annotation, AnnotatedAction action)

Configures the newly-created action before it is returned to ActionMap. Subclasses can override this method to change configuration behavior.

Parameters
annotation:ActionProxy

The annotation specified on the method.

action:AnnotatedAction

The newly-created action.

createActionback to summary
public AnnotatedAction createAction(ActionProxy annotation, Method method, Object target)

Implements org.controlsfx.control.action.AnnotatedActionFactory.createAction.

Create an AnnotatedAction. This method is called by ActionMap#register(java.lang.Object).

Parameters
annotation:ActionProxy

The annotation specified on the method.

method:Method

The method to be invoked when an action is fired.

target:Object

The target object on which the method will be invoked.

Returns:AnnotatedAction

An AnnotatedAction instance.

Annotations
@Override
resolveGraphicback to summary
protected Node resolveGraphic(ActionProxy annotation)

Resolve the graphical representation of this action. The default implementation of this method implements the protocol described in ActionProxy#graphic(), but subclasses can override this method to provide alternative behavior.

Parameters
annotation:ActionProxy

The annotation specified on the method.

Returns:Node

A JavaFX Node for the graphic associated with this action.