Annotation that adds a method action to the annotated node. The action will call a method that is defined in the same
controller class as the node field. The
value() field defines the method name that will be called.
The node value must be injected from fxml. Therefore the ActionMethod should be always used in combination with the
FXML annotation.
If a node that extends
ButtonBase or
MenuItem then the back
action will be triggered whenever the node fires an action event. Otherwise the action will be triggered when the
node is clicked.