Class ContextMenuEvent


public class ContextMenuEvent extends MouseEvent
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 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 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