Class ContextMenuEvent
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.ContextMenuEvent
Represents a context menu event that occurs when the user right-clicks or triggers
the context menu on an element.
- Since:
- 2026
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextMenuEvent(int clientX, int clientY) Constructs a new ContextMenuEvent 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
-
ContextMenuEvent
public ContextMenuEvent(int clientX, int clientY) Constructs a new ContextMenuEvent 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
-