Spec-Zone .ru
спецификации, руководства, описания, API
|
public class ActionEvent extends Event
Event
representing some type of action. This event type is widely
used to represent a variety of things, such as when a Button
has been fired, when a KeyFrame
has finished, and other
such usages.Modifier and Type | Field and Description |
---|---|
static EventType<ActionEvent> |
ACTION
The only valid EventType for the ActionEvent.
|
Constructor and Description |
---|
ActionEvent()
Creates a new
ActionEvent with an event type of ACTION_EVENT . |
ActionEvent(java.lang.Object source,
EventTarget target)
Construct a new
ActionEvent with the specified event source and target. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
public static final EventType<ActionEvent> ACTION
public ActionEvent()
ActionEvent
with an event type of ACTION_EVENT
.
The source and target of the event is set to NULL_SOURCE_TARGET
.public ActionEvent(java.lang.Object source, EventTarget target)
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 ActionEvent's have their type set to
ACTION_EVENT
.source
- the event source which sent the eventtarget
- the event target to associate with the eventCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to