Package com.google.gwt.event.dom.client
Class HumanInputEvent<H extends EventHandler>
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.google.gwt.event.dom.client.DomEvent<H>
com.google.gwt.event.dom.client.HumanInputEvent<H>
- Type Parameters:
H
- handler type
- All Implemented Interfaces:
HasNativeEvent
- Direct Known Subclasses:
MouseEvent
,TouchEvent
Abstract class representing position events such as mouse or touch events.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.dom.client.DomEvent
DomEvent.Type<H extends EventHandler>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Isalt
key down.boolean
Iscontrol
key down.boolean
Ismeta
key down.boolean
Isshift
key down.Methods inherited from class com.google.gwt.event.dom.client.DomEvent
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, dispatch, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
HumanInputEvent
public HumanInputEvent()
-
-
Method Details
-
isAltKeyDown
public boolean isAltKeyDown()Isalt
key down.- Returns:
- whether the alt key is down
-
isControlKeyDown
public boolean isControlKeyDown()Iscontrol
key down.- Returns:
- whether the control key is down
-
isMetaKeyDown
public boolean isMetaKeyDown()Ismeta
key down.- Returns:
- whether the meta key is down
-
isShiftKeyDown
public boolean isShiftKeyDown()Isshift
key down.- Returns:
- whether the shift key is down
-