Class SInputEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.vaadin.swingbridge.surrogates.awt.event.SComponentEvent
com.vaadin.swingbridge.surrogates.awt.event.SInputEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SKeyEvent, SMouseEvent
Surrogate-side port of
InputEvent. Abstract parent of
SKeyEvent and SMouseEvent. Source retyped from
Component to
Component for the same SD_event_port_stance reason
SComponentEvent needs porting — surrogates are Vaadin components,
not AWT components.
Every modifier constant below is AWT's, by delegation rather than by value, so bit
arithmetic carries across unchanged and stays correct however AWT evolves; the deprecated
*_MASK set is republished for user code that hasn't migrated. Static utilities delegate
for the same reason. The block is emitted by DelegatedConstantsTest from
InputEvent's public runtime API — see that test before editing it by hand.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intDeprecated.static final intDeprecated.static final intstatic final intDeprecated.static final intstatic final intDeprecated.static final intstatic final intDeprecated.static final intstatic final intDeprecated.static final intstatic final intDeprecated.static final intstatic final intDeprecated.Fields 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
ConstructorsModifierConstructorDescriptionprotectedSInputEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers) -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMaskForButton(int button) Delegates to AWT — constants match.intDeprecated.intstatic StringgetModifiersExText(int modifiers) Delegates to AWT — constants match and formatting is locale-aware.longgetWhen()booleanbooleanbooleanbooleanbooleanMethods inherited from class SComponentEvent
getComponent, paramStringMethods inherited from class EventObject
getSource
-
Field Details
-
ALT_DOWN_MASK
public static final int ALT_DOWN_MASK- See Also:
-
ALT_GRAPH_DOWN_MASK
public static final int ALT_GRAPH_DOWN_MASK- See Also:
-
ALT_GRAPH_MASK
-
ALT_MASK
-
BUTTON1_DOWN_MASK
public static final int BUTTON1_DOWN_MASK- See Also:
-
BUTTON1_MASK
-
BUTTON2_DOWN_MASK
public static final int BUTTON2_DOWN_MASK- See Also:
-
BUTTON2_MASK
-
BUTTON3_DOWN_MASK
public static final int BUTTON3_DOWN_MASK- See Also:
-
BUTTON3_MASK
-
CTRL_DOWN_MASK
public static final int CTRL_DOWN_MASK- See Also:
-
CTRL_MASK
-
META_DOWN_MASK
public static final int META_DOWN_MASK- See Also:
-
META_MASK
-
SHIFT_DOWN_MASK
public static final int SHIFT_DOWN_MASK- See Also:
-
SHIFT_MASK
-
-
Constructor Details
-
SInputEvent
protected SInputEvent(com.vaadin.flow.component.Component source, int id, long when, int modifiers)
-
-
Method Details
-
getWhen
public long getWhen() -
getModifiers
Deprecated.Legacy-modifier accessor; deprecated in AWT. We store only the extended set and return it verbatim — user code checking specific bits should usegetModifiersEx()with the*_DOWN_MASKconstants. -
getModifiersEx
public int getModifiersEx() -
isShiftDown
public boolean isShiftDown() -
isControlDown
public boolean isControlDown() -
isMetaDown
public boolean isMetaDown() -
isAltDown
public boolean isAltDown() -
isAltGraphDown
public boolean isAltGraphDown() -
getMaskForButton
public static int getMaskForButton(int button) Delegates to AWT — constants match. -
getModifiersExText
Delegates to AWT — constants match and formatting is locale-aware.
-