public class InputEvent extends Event
| Modifier and Type | Field and Description |
|---|---|
static EventType<InputEvent> |
ANY
Common supertype for all input event types.
|
consumed, eventType, NULL_SOURCE_TARGET, targetsource| Constructor and Description |
|---|
InputEvent(EventType<? extends InputEvent> eventType)
Creates new instance of InputEvent.
|
InputEvent(Object source,
EventTarget target,
EventType<? extends InputEvent> eventType)
Creates new instance of InputEvent.
|
| Modifier and Type | Method and Description |
|---|---|
EventType<? extends InputEvent> |
getEventType()
Gets the event type of this event.
|
clone, consume, copyFor, fireEvent, getTarget, isConsumedgetSource, toStringpublic static final EventType<InputEvent> ANY
public InputEvent(EventType<? extends InputEvent> eventType)
eventType - Type of the eventpublic InputEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType)
source - Event sourcetarget - Event targeteventType - Type of the eventpublic EventType<? extends InputEvent> getEventType()
EventEvent
class can have different event types. These event types further specify
what kind of event occurred.getEventType in class EventCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.