Class SMouseEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.vaadin.swingbridge.surrogates.awt.event.SComponentEvent
com.vaadin.swingbridge.surrogates.awt.event.SInputEvent
com.vaadin.swingbridge.surrogates.awt.event.SMouseEvent
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class SInputEvent
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASKFields inherited from class SComponentEvent
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWNFields inherited from class AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSMouseEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) SMouseEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) 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) -
Method Summary
Methods inherited from class SInputEvent
getMaskForButton, getModifiers, getModifiersEx, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isControlDown, isMetaDown, isShiftDownMethods inherited from class SComponentEvent
getComponentMethods inherited from class EventObject
getSource
-
Field Details
-
BUTTON1
public static final int BUTTON1- See Also:
-
BUTTON2
public static final int BUTTON2- See Also:
-
BUTTON3
public static final int BUTTON3- See Also:
-
MOUSE_CLICKED
public static final int MOUSE_CLICKED- See Also:
-
MOUSE_DRAGGED
public static final int MOUSE_DRAGGED- See Also:
-
MOUSE_ENTERED
public static final int MOUSE_ENTERED- See Also:
-
MOUSE_EXITED
public static final int MOUSE_EXITED- See Also:
-
MOUSE_FIRST
public static final int MOUSE_FIRST- See Also:
-
MOUSE_LAST
public static final int MOUSE_LAST- See Also:
-
MOUSE_MOVED
public static final int MOUSE_MOVED- See Also:
-
MOUSE_PRESSED
public static final int MOUSE_PRESSED- See Also:
-
MOUSE_RELEASED
public static final int MOUSE_RELEASED- See Also:
-
MOUSE_WHEEL
public static final int MOUSE_WHEEL- See Also:
-
NOBUTTON
public static final int NOBUTTON- See Also:
-
-
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
-
getXOnScreen
public int getXOnScreen() -
getYOnScreen
public int getYOnScreen() -
getLocationOnScreen
-
getClickCount
public int getClickCount() -
isPopupTrigger
public boolean isPopupTrigger() -
getButton
public int getButton() -
paramString
- Overrides:
paramStringin classSComponentEvent
-