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, target source | 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, isConsumed getSource, toString public 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()
Event Event
class can have different event types. These event types further specify
what kind of event occurred.getEventType in class Event Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.