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
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.