- Direct Known Subclasses:
public class ActionEvent extends EventAn
Eventrepresenting some type of action. This event type is widely used to represent a variety of things, such as when a
Buttonhas been fired, when a
KeyFramehas finished, and other such usages.
- JavaFX 2.0
- See Also:
- Serialized Form
Fields Modifier and Type Field Description
ACTIONThe only valid EventType for the ActionEvent.
ANYCommon supertype for all action event types.
Methods declared in class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
public ActionEvent()Creates a new
ActionEventwith an event type of
ACTION. The source and target of the event is set to
public ActionEvent(Object source, EventTarget target)Construct a new
ActionEventwith the specified event source and target. If the source or target is set to
null, it is replaced by the
NULL_SOURCE_TARGETvalue. All ActionEvents have their type set to
source- the event source which sent the event
target- the event target to associate with the event