Class MouseEnterEvent
java.lang.Object
com.oorian.messaging.events.Event<MouseClickListener>
com.oorian.messaging.events.client.ClientEvent<MouseClickListener>
com.oorian.messaging.events.client.MouseEvent
com.oorian.messaging.events.client.MouseEnterEvent
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 Summary
ConstructorsConstructorDescriptionMouseEnterEvent(int clientX, int clientY) Constructs a new MouseEnterEvent with the specified client coordinates. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(MouseClickListener listener) Dispatches this event to the specified listener for processing.Methods inherited from class com.oorian.messaging.events.client.MouseEvent
getClientX, getClientYMethods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
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 viewportclientY- the Y coordinate of the mouse pointer relative to the client viewport
-
-
Method Details
-
dispatchTo
Dispatches this event to the specified listener for processing.- Specified by:
dispatchToin classEvent<MouseClickListener>- Parameters:
listener- the listener to which this event should be dispatched
-