Class SMouseEvent

All Implemented Interfaces:
Serializable

public class SMouseEvent extends SInputEvent
Surrogate-side port of MouseEvent. Source retyped from Component to Component per SD_event_port_stance — surrogates are Vaadin components, not AWT components, so the JDK type doesn't fit.

The MOUSE_* ID constants and the BUTTON* button constants have identical values to AWT — bit/value comparisons across the boundary carry verbatim. Mirrors the emulator-side vaadinx.awt.event.MouseEvent port (SD_shelper_statics: cross-module reuse is disallowed, so the constants exist twice).

Today's only producer is ComponentMixin.addMouseListener's ClickNotifier-backed wire, which fires MOUSE_CLICKED. Other MOUSE_* IDs are surface-only (so migrated listener code that switches on e.getID() compiles); the press/release/move/drag/wheel firings would need a custom DOM listener stack — out of scope.

See Also:
  • Field Details

  • Constructor Details

    • SMouseEvent

      public SMouseEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button)
    • SMouseEvent

      public SMouseEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)
    • SMouseEvent

      public SMouseEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
  • Method Details

    • getX

      public int getX()
    • getY

      public int getY()
    • getPoint

      public Point getPoint()
    • getXOnScreen

      public int getXOnScreen()
    • getYOnScreen

      public int getYOnScreen()
    • getLocationOnScreen

      public Point getLocationOnScreen()
    • getClickCount

      public int getClickCount()
    • isPopupTrigger

      public boolean isPopupTrigger()
    • getButton

      public int getButton()
    • paramString

      public String paramString()
      Overrides:
      paramString in class SComponentEvent