Class MouseEditEvent

    • Field Detail

      • clickCount

        public final int clickCount
    • Method Detail

      • getGwtEvent

        public com.google.gwt.event.dom.client.MouseEvent<?> getGwtEvent()
        Overrides:
        getGwtEvent in class EditEvent
      • getClickCount

        public int getClickCount()
        Returns:
        The number of clicks recognized by this Event.
        See Also:
        MouseEvent.getClickCount()
      • getPoint

        public Point getPoint()
      • getPoint

        public Point getPoint​(int finger)
        Description copied from class: PointedEditEvent
        Return the point relative to the RenderedPage's origin in screen coordinates.
        Specified by:
        getPoint in class PointedEditEvent
        Parameters:
        finger - the finger of the touch (only for touch event)
        Returns:
        The point relative to the RenderedPage's origin.
        See Also:
        MouseEvent.getPoint()
      • getAbsolutePoint

        public Point getAbsolutePoint()
      • getAbsolutePoint

        public Point getAbsolutePoint​(int finger)
        Specified by:
        getAbsolutePoint in class PointedEditEvent
        Parameters:
        finger - the finger of the touch (only for touch event)
        Returns:
        the Point relative to the PageView-TopLeft
      • getInputEvent

        public InputEvent getInputEvent()
        Creates and returns an InputEvent.

        For legacy purposes only.

        Specified by:
        getInputEvent in class EditEvent
        Returns:
        An input event that can be used for legacy purposes.
      • getConstrainedPoint

        public Point getConstrainedPoint()
        Return the point relative to the RenderedPage's origin in screen coordinates. If the point is outside the rendered page's bounds, the point is constrained to lie within the bounds.

        Caveat: Clients must not attempt to call this method unless EditEvent.hasPageContext() returned true.

        Returns:
        The point.
        Throws:
        IllegalStateException - if the event does not have a page context.
        See Also:
        MouseEvent.getPoint(), EditEvent.hasPageContext()
      • getX

        public int getX()
        Returns:
        The x coordinate of the point where the mouse was clicked.
        See Also:
        MouseEvent.getX()
      • getY

        public int getY()
        Returns:
        The y coordinate of the point where the mouse was clicked.
        See Also:
        MouseEvent.getY()
      • isWithinPageBounds

        public boolean isWithinPageBounds()
        Returns:
        True, if the event was fired by a click within the bounds, false else.