Module javafx.base
Package javafx.event

Class ActionEvent

    • Field Detail

      • ACTION

        public static final EventType<ActionEvent> ACTION
        The only valid EventType for the ActionEvent.
      • ANY

        public static final EventType<ActionEvent> ANY
        Common supertype for all action event types.
        JavaFX 8.0
    • Constructor Detail

      • ActionEvent

        public ActionEvent()
        Creates a new ActionEvent with an event type of ACTION. The source and target of the event is set to NULL_SOURCE_TARGET.
      • ActionEvent

        public ActionEvent​(Object source,
                           EventTarget target)
        Construct a new ActionEvent with the specified event source and target. If the source or target is set to null, it is replaced by the NULL_SOURCE_TARGET value. All ActionEvents have their type set to ACTION.
        source - the event source which sent the event
        target - the event target to associate with the event