## Uses of Class
javafx.event.ActionEvent

- Packages that use ActionEvent
  Package | Description
  --- | ---
  javafx.animation | Provides the set of classes for ease of use transition based animations.
  javafx.event | Provides basic framework for FX events, their delivery and handling.
  javafx.scene.control | The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.
  javafx.scene.media | Provides the set of classes for integrating audio and video into Java FX Applications.

- - ### Uses of ActionEvent in javafx.animation

    Methods in javafx.animation that return types with arguments of type ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `EventHandler<ActionEvent>` | Animation.`getOnFinished()` Gets the value of the property onFinished.
    `EventHandler<ActionEvent>` | KeyFrame.`getOnFinished()` Returns the `onFinished` event handler of this `KeyFrame`.
    `ObjectProperty<EventHandler<ActionEvent>>` | Animation.`onFinishedProperty()` The action to be executed at the conclusion of this `Animation`.

    Method parameters in javafx.animation with type arguments of type ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | Animation.`setOnFinished(EventHandler<ActionEvent> value)` Sets the value of the property onFinished.

    Constructor parameters in javafx.animation with type arguments of type ActionEvent
    Constructor and Description
    `KeyFrame(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values)` Constructor of `KeyFrame`
    `KeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values)` Constructor of `KeyFrame`
    `KeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values)` Constructor of `KeyFrame`

  - ### Uses of ActionEvent in javafx.event

    Fields in javafx.event with type parameters of type ActionEvent
    Modifier and Type | Field and Description
    --- | ---
    `static EventType<ActionEvent>` | ActionEvent.`ACTION` The only valid EventType for the ActionEvent.
    `static EventType<ActionEvent>` | ActionEvent.`ANY` Common supertype for all action event types.

    Methods in javafx.event that return ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `ActionEvent` | ActionEvent.`copyFor(Object newSource, EventTarget newTarget)`

    Methods in javafx.event that return types with arguments of type ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `EventType<? extends ActionEvent>` | ActionEvent.`getEventType()`

  - ### Uses of ActionEvent in javafx.scene.control

    Methods in javafx.scene.control that return types with arguments of type ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `EventHandler<ActionEvent>` | ButtonBase.`getOnAction()` Gets the value of the property onAction.
    `EventHandler<ActionEvent>` | ChoiceBox.`getOnAction()` Gets the value of the property onAction.
    `EventHandler<ActionEvent>` | ComboBoxBase.`getOnAction()` Gets the value of the property onAction.
    `EventHandler<ActionEvent>` | ContextMenu.`getOnAction()` Gets the value of the property onAction.
    `EventHandler<ActionEvent>` | MenuItem.`getOnAction()` Gets the value of the property onAction.
    `EventHandler<ActionEvent>` | TextField.`getOnAction()` Gets the value of the property onAction.
    `ObjectProperty<EventHandler<ActionEvent>>` | ButtonBase.`onActionProperty()` The button's action, which is invoked whenever the button is fired.
    `ObjectProperty<EventHandler<ActionEvent>>` | ChoiceBox.`onActionProperty()` The ChoiceBox action, which is invoked whenever the ChoiceBox `value` property is changed.
    `ObjectProperty<EventHandler<ActionEvent>>` | ComboBoxBase.`onActionProperty()` The ComboBox action, which is invoked whenever the ComboBox `value` property is changed.
    `ObjectProperty<EventHandler<ActionEvent>>` | ContextMenu.`onActionProperty()` Callback function to be informed when an item contained within this `ContextMenu` has been activated.
    `ObjectProperty<EventHandler<ActionEvent>>` | MenuItem.`onActionProperty()` The action, which is invoked whenever the MenuItem is fired.
    `ObjectProperty<EventHandler<ActionEvent>>` | TextField.`onActionProperty()` The action handler associated with this text field, or `null` if no action handler is assigned.

    Method parameters in javafx.scene.control with type arguments of type ActionEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | ButtonBase.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.
    `void` | ChoiceBox.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.
    `void` | ComboBoxBase.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.
    `void` | ContextMenu.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.
    `void` | MenuItem.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.
    `void` | TextField.`setOnAction(EventHandler<ActionEvent> value)` Sets the value of the property onAction.

  - ### Uses of ActionEvent in javafx.scene.media

    Subclasses of ActionEvent in javafx.scene.media
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MediaMarkerEvent` An `ActionEvent` representing a media marker.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.