com.vaadin.client.

Class MouseEventDetailsBuilder

  • public class MouseEventDetailsBuilder
    extends Object

    Helper class for constructing a MouseEventDetails object from a NativeEvent.

    Since:

    7.0.0

    Author:

    Vaadin Ltd

    • Constructor Detail

      • MouseEventDetailsBuilder

        public MouseEventDetailsBuilder()
    • Method Detail

      • buildMouseEventDetails

        public static MouseEventDetails buildMouseEventDetails​(com.google.gwt.dom.client.NativeEvent evt)

        Construct a MouseEventDetails object from the given event.

        Parameters:

        evt - The event to use as a source for the details

        Returns:

        a MouseEventDetails containing information from the event

      • buildMouseEventDetails

        public static MouseEventDetails buildMouseEventDetails​(com.google.gwt.dom.client.NativeEvent evt,
                                                               com.google.gwt.dom.client.Element relativeToElement)

        Construct a MouseEventDetails object from the given event.

        Parameters:

        evt - The event to use as a source for the details

        relativeToElement - The element whose position MouseEventDetails.getRelativeX() and MouseEventDetails.getRelativeY() are relative to.

        Returns:

        a MouseEventDetails containing information from the event