Class 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 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 event
        init - 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 event
        init - initial configuration of the event
        Returns:
        a new event object for a specific event type