Class NativeMouseEvent
- java.lang.Object
-
- org.pepstock.charba.client.dom.events.NativeBaseEvent
-
- org.pepstock.charba.client.dom.events.NativeUIEvent
-
- org.pepstock.charba.client.dom.events.NativeAbstractMouseEvent
-
- org.pepstock.charba.client.dom.events.NativeMouseEvent
-
- All Implemented Interfaces:
IsJSType
,IsCastable
@JsType(isNative=true, name="MouseEvent", namespace="<global>") public final class NativeMouseEvent extends NativeAbstractMouseEvent
Represents a mouse events that occur due to the user interacting with a pointing device.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NativeMouseEvent
createMouseEvent(String type)
Creates a new event object for a specific event type.static NativeMouseEvent
createMouseEvent(String type, MouseEventInit init)
Creates a new event object for a specific event type with initial configuration.static NativeMouseEvent
createMouseEvent(IsEvent type)
Creates a new event object for a specific event type.static NativeMouseEvent
createMouseEvent(IsEvent type, MouseEventInit init)
Creates a new event object for a specific event type with initial configuration.-
Methods inherited from class org.pepstock.charba.client.dom.events.NativeAbstractMouseEvent
getButton, getButtons, getClientX, getClientY, getLayerX, getLayerY, getOffsetX, getOffsetY, getPageX, getPageY, getRelatedTarget, getScreenX, getScreenY, getX, getY, isAltKey, isCtrlKey, isMetaKey, isShiftKey
-
Methods inherited from class org.pepstock.charba.client.dom.events.NativeUIEvent
getDetail, getModifierState
-
Methods inherited from class org.pepstock.charba.client.dom.events.NativeBaseEvent
createEvent, createEvent, createEvent, createEvent, getCurrentTarget, getEventPhase, getTarget, getType, isBubbles, isCancelable, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.dom.IsCastable
as
-
-
-
-
Method Detail
-
createMouseEvent
@JsOverlay public static NativeMouseEvent createMouseEvent(String type)
Creates a new event object for a specific event type.- Parameters:
type
- type of event- Returns:
- a new event object for a specific event type
-
createMouseEvent
@JsOverlay public static NativeMouseEvent createMouseEvent(IsEvent type)
Creates a new event object for a specific event type.- Parameters:
type
- type of event- Returns:
- a new event object for a specific event type
-
createMouseEvent
@JsOverlay public static NativeMouseEvent createMouseEvent(IsEvent type, MouseEventInit init)
Creates a new event object for a specific event type with initial configuration.- Parameters:
type
- type of eventinit
- initial configuration of the event- Returns:
- a new event object for a specific event type
-
createMouseEvent
@JsOverlay public static NativeMouseEvent createMouseEvent(String type, MouseEventInit init)
Creates a new event object for a specific event type with initial configuration.- Parameters:
type
- type of eventinit
- initial configuration of the event- Returns:
- a new event object for a specific event type
-
-