@JsType(isNative=true, name="MouseEvent", namespace="<global>") public final class BaseNativeMouseEvent extends BaseNativeEvent
Modifier and Type | Method and Description |
---|---|
BaseEventTarget |
getCurrentTarget()
Returns a reference to the currently registered target for the event.
This is the object to which the event is currently slated to be sent. |
BaseEventTarget |
getTarget()
Returns a reference to the target to which the event was originally dispatched.
|
String |
getType()
Returns the type of the event.
|
void |
initEvent(String eventTypeArg,
boolean bubbles,
boolean cancelable)
Initialize the value of a created event.
|
boolean |
isDefaultPrevented()
Indicates whether or not the call to
BaseEvent.preventDefault() canceled the event. |
void |
preventDefault()
Cancels the event (if it is cancelable).
|
void |
stopImmediatePropagation()
Prevents all other listeners from being called.
|
void |
stopPropagation()
Stops the propagation of events further along in the DOM.
|
getButton, getButtons, getChangedTouches, getClientX, getClientY, getLayerX, getLayerY, getOffsetX, getOffsetY, getPageX, getPageY, getRelatedTarget, getScreenX, getScreenY, getTargetTouches, getTouches, getX, getY, isAltKey, isCtrlKey, isMetaKey, isShiftKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as
@JsProperty public final BaseEventTarget getCurrentTarget()
@JsProperty public final boolean isDefaultPrevented()
BaseEvent.preventDefault()
canceled the event.BaseEvent.preventDefault()
canceled the event@JsProperty public final BaseEventTarget getTarget()
@JsProperty public final String getType()
@JsMethod public final void initEvent(String eventTypeArg, boolean bubbles, boolean cancelable)
eventTypeArg
- a string which is defining the type of eventbubbles
- deciding whether the event should bubble up through the event chain or notcancelable
- defining whether the event can be canceled@JsMethod public final void preventDefault()
@JsMethod public final void stopImmediatePropagation()
@JsMethod public final void stopPropagation()