Class MouseLeaveEvent


public class MouseLeaveEvent extends MouseEvent
Represents a mouse leave event that occurs when the mouse pointer leaves an element's boundaries.

Unlike MouseOutEvent, this event does not bubble and is only fired when the pointer leaves the element itself, not its descendants.

Since:
2026
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • MouseLeaveEvent

      public MouseLeaveEvent(int clientX, int clientY)
      Constructs a new MouseLeaveEvent with the specified client coordinates.
      Parameters:
      clientX - the X coordinate of the mouse pointer relative to the client viewport
      clientY - the Y coordinate of the mouse pointer relative to the client viewport
  • Method Details

    • dispatchTo

      public void dispatchTo(MouseClickListener listener)
      Dispatches this event to the specified listener for processing.
      Specified by:
      dispatchTo in class Event<MouseClickListener>
      Parameters:
      listener - the listener to which this event should be dispatched