Class MouseEnterEvent


public class MouseEnterEvent extends MouseEvent
Represents a mouse enter event that occurs when the mouse pointer enters an element's boundaries.

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

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

    • MouseEnterEvent

      public MouseEnterEvent(int clientX, int clientY)
      Constructs a new MouseEnterEvent 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