H
- @JsType(namespace="xgl.events") public abstract class Event<H extends EventHandler> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Event.Type<H extends EventHandler> |
Modifier and Type | Field and Description |
---|---|
protected boolean |
dead |
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertLive() |
<T> T |
cast() |
protected static void |
checkIsInEventThread() |
protected abstract void |
dispatch(H handler) |
EventPhase |
getEventPhase() |
<T extends EventTarget<?>> |
getSource() |
abstract Event.Type<H> |
getType() |
protected boolean |
isLive() |
boolean |
isPreventDefault() |
boolean |
isStopPropagation() |
protected void |
kill() |
void |
preventDefault() |
static <E extends Element<E>> |
releaseCapture(E element) |
protected void |
revive() |
static <E extends Element<E>> |
setCapture(E element) |
static <E extends Element<E>> |
setCapture(E element,
CaptureType captureType) |
void |
setSource(EventTarget<?> source) |
void |
stopPropagation() |
protected final boolean isLive()
protected void assertLive()
protected void kill()
protected void revive()
public void setSource(EventTarget<?> source)
public <T extends EventTarget<?>> T getSource()
public abstract Event.Type<H> getType()
protected abstract void dispatch(H handler)
public static <E extends Element<E>> void releaseCapture(E element)
@JsIgnore public static <E extends Element<E>> void setCapture(E element)
@JsIgnore public static <E extends Element<E>> void setCapture(E element, CaptureType captureType)
public <T> T cast()
public void stopPropagation()
public void preventDefault()
public boolean isStopPropagation()
public boolean isPreventDefault()
public EventPhase getEventPhase()
protected static void checkIsInEventThread()
Copyright © 2018 Xalys. All rights reserved.