com.aspose.html.dom.events

Class MouseEvent

    • Constructor Detail

      • MouseEvent

        public MouseEvent(String type)

        Initializes a new instance of the MouseEvent class.

        Parameters:
        type - The event type.
      • MouseEvent

        public MouseEvent(String type,
                          MouseEvent.MouseEventInit eventInitDict)

        Initializes a new instance of the MouseEvent class.

        Parameters:
        type - The event type.
        eventInitDict - The event initialize dictionary.
    • Method Detail

      • getScreenX

        @DOMNameAttribute(name="screenX")
        public long getScreenX()

        The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.

        Value: The screen x.
      • getScreenY

        @DOMNameAttribute(name="screenY")
        public long getScreenY()

        The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.

        Value: The screen y.
      • getClientX

        @DOMNameAttribute(name="clientX")
        public long getClientX()

        The horizontal coordinate at which the event occurred relative to the viewport associated with the event.

        Value: The client x.
      • getClientY

        @DOMNameAttribute(name="clientY")
        public long getClientY()

        The vertical coordinate at which the event occurred relative to the viewport associated with the event.

        Value: The client y.
      • getCtrlKey

        @DOMNameAttribute(name="ctrlKey")
        public boolean getCtrlKey()

        Refer to the ctrlKey attribute.

        Value: true if [control key]; otherwise, false.
      • getShiftKey

        @DOMNameAttribute(name="shiftKey")
        public boolean getShiftKey()

        Refer to the shiftKey attribute.

        Value: true if [shift key]; otherwise, false.
      • getAltKey

        @DOMNameAttribute(name="altKey")
        public boolean getAltKey()

        Refer to the altKey attribute.

        Value: true if [alt key]; otherwise, false.
      • getMetaKey

        @DOMNameAttribute(name="metaKey")
        public boolean getMetaKey()

        Refer to the metaKey attribute.

        Value: true if [meta key]; otherwise, false.
      • getButton

        @DOMNameAttribute(name="button")
        public short getButton()

        During mouse events caused by the depression or release of a mouse button, button MUST be used to indicate which pointer device button changed state.

        Value: The button.
      • getButtons

        @DOMNameAttribute(name="buttons")
        public int getButtons()

        During any mouse events, buttons MUST be used to indicate which combination of mouse buttons are currently being pressed, expressed as a bitmask.

        Value: The buttons.
      • getRelatedTarget

        @DOMNameAttribute(name="relatedTarget")
        public EventTarget getRelatedTarget()

        Used to identify a secondary EventTarget related to a UI event, depending on the type of event.

        Value: The related target.