Package org.jboss.elemento
Class EventType<T extends Event,V extends EventTarget>
java.lang.Object
org.jboss.elemento.EventType<T,V>
Known event types used in
HasElement.on(EventType, EventCallbackFn)
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EventType
<MouseEvent, Element> static final EventType
<FocusEvent, Element> static final EventType
<MouseEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<MouseEvent, Element> static final EventType
<ClipboardEvent, EventTarget> static final EventType
<ClipboardEvent, EventTarget> static final EventType
<MouseEvent, Element> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<DragEvent, EventTarget> static final EventType
<FocusEvent, Element> static final EventType
<HashChangeEvent, Window> static final EventType
<KeyboardEvent, EventTarget> static final EventType
<KeyboardEvent, EventTarget> static final EventType
<KeyboardEvent, EventTarget> static final EventType
<MessageEvent<?>, EventTarget> static final EventType
<MouseEvent, EventTarget> static final EventType
<MouseEvent, EventTarget> static final EventType
<MouseEvent, Element> static final EventType
<MouseEvent, EventTarget> static final EventType
<MouseEvent, Element> static final EventType
<MouseEvent, EventTarget> static final EventType
<MouseEvent, EventTarget> final String
static final EventType
<PageTransitionEvent, Document> static final EventType
<PageTransitionEvent, Document> static final EventType
<ClipboardEvent, EventTarget> static final EventType
<PopStateEvent, Window> static final EventType
<Event, EventTarget> static final EventType
<StorageEvent, Window> static final EventType
<TouchEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<TouchEvent, Element> static final EventType
<WheelEvent, EventTarget> -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerRegistration
bind
(EventTarget target, String type, boolean useCapture, EventListener listener) Registers an event handler.static HandlerRegistration
bind
(EventTarget target, String type, AddEventListenerOptions options, EventListener listener) Registers an event handler.static HandlerRegistration
bind
(EventTarget target, String type, EventListener listener) Registers an event handler.static <T extends Event>
HandlerRegistrationbind
(EventTarget target, EventType<T, ?> type, boolean useCapture, EventCallbackFn<T> listener) Registers an event handler.static <T extends Event>
HandlerRegistrationbind
(EventTarget target, EventType<T, ?> type, AddEventListenerOptions options, EventCallbackFn<T> listener) Registers an event handler.static <T extends Event>
HandlerRegistrationbind
(EventTarget target, EventType<T, ?> type, EventCallbackFn<T> listener) Registers an event handler.static <E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, String type, boolean useCapture, EventListener listener) Registers an event handler.static <E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, String type, AddEventListenerOptions options, EventListener listener) Registers an event handler.static <E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, String type, EventListener listener) Registers an event handler.static <T extends Event,
E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, EventType<T, ?> type, boolean useCapture, EventCallbackFn<T> listener) Registers an event handler.static <T extends Event,
E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, EventType<T, ?> type, AddEventListenerOptions options, EventCallbackFn<T> listener) Registers an event handler.static <T extends Event,
E extends HTMLElement>
HandlerRegistrationbind
(IsElement<E> target, EventType<T, ?> type, EventCallbackFn<T> listener) Registers an event handler.getName()
Deprecated.static <T extends Event,
V extends EventTarget>
EventType<T, V>
-
Field Details
-
online
-
offline
-
focus
-
blur
-
pagehide
-
pageshow
-
popstate
-
reset
-
submit
-
beforeprint
-
afterprint
-
compositionstart
-
compositionupdate
-
compositionend
-
fullscreenchange
-
fullscreenerror
-
resize
-
scroll
-
cut
-
copy
-
paste
-
keydown
-
keypress
-
keyup
-
mouseenter
-
mouseover
-
mousemove
-
mousedown
-
mouseup
-
auxclick
-
click
-
dblclick
-
wheel
-
mouseleave
-
mouseout
-
pointerlockchange
-
pointerlockerror
-
dragstart
-
drag
-
dragend
-
dragenter
-
dragover
-
dragleave
-
drop
-
touchcancel
-
touchend
-
touchmove
-
touchstart
-
hashchange
-
input
-
readystatechange
-
change
-
search
-
invalid
-
show
-
message
-
storage
-
load
-
visibilitychange
-
name
-
-
Method Details
-
of
-
bind
public static <T extends Event> HandlerRegistration bind(EventTarget target, EventType<T, ?> type, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <T extends Event> HandlerRegistration bind(EventTarget target, EventType<T, ?> type, boolean useCapture, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static HandlerRegistration bind(EventTarget target, String type, boolean useCapture, EventListener listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <T extends Event> HandlerRegistration bind(EventTarget target, EventType<T, ?> type, AddEventListenerOptions options, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static HandlerRegistration bind(EventTarget target, String type, AddEventListenerOptions options, EventListener listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <T extends Event,E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, EventType<T, ?> type, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, String type, EventListener listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <T extends Event,E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, EventType<T, ?> type, boolean useCapture, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, String type, boolean useCapture, EventListener listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <T extends Event,E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, EventType<T, ?> type, AddEventListenerOptions options, EventCallbackFn<T> listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
bind
public static <E extends HTMLElement> HandlerRegistration bind(IsElement<E> target, String type, AddEventListenerOptions options, EventListener listener) Registers an event handler.HandlerRegistration handler = bind(body(), click, event -> alert("Clicked")); // later... handler.removeHandler();
-
getName
Deprecated.Use public fieldname
instead- Returns:
- the name of the event type.
-
name
instead