Class SFocusEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
com.vaadin.swingbridge.surrogates.awt.event.SComponentEvent
com.vaadin.swingbridge.surrogates.awt.event.SFocusEvent
- All Implemented Interfaces:
Serializable
Surrogate-side port of
FocusEvent. Source type
retyped from Component to Component;
opposite likewise (SD_event_port_stance rationale).
The FocusEvent.Cause enum is deliberately not
carried in any constructor overload here — it's a JDK-9+ refinement
layered onto an API we already cover with the original two-/three-arg
shape. No migration target reads getCause() today; add when one
surfaces.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionSFocusEvent(com.vaadin.flow.component.Component source, int id) SFocusEvent(com.vaadin.flow.component.Component source, int id, boolean temporary) SFocusEvent(com.vaadin.flow.component.Component source, int id, boolean temporary, com.vaadin.flow.component.Component opposite) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentThe component losing/gaining focus on the other end of the transition, ornullwhen unknown (our peer subscriptions don't receive the opposite from Vaadin).booleanJDK'sFocusEvent.isTemporary— true for cross-window focus changes the browser considers ephemeral.Methods inherited from class SComponentEvent
getComponentMethods inherited from class EventObject
getSource
-
Field Details
-
FOCUS_FIRST
public static final int FOCUS_FIRST- See Also:
-
FOCUS_GAINED
public static final int FOCUS_GAINED- See Also:
-
FOCUS_LAST
public static final int FOCUS_LAST- See Also:
-
FOCUS_LOST
public static final int FOCUS_LOST- See Also:
-
-
Constructor Details
-
SFocusEvent
public SFocusEvent(com.vaadin.flow.component.Component source, int id) -
SFocusEvent
public SFocusEvent(com.vaadin.flow.component.Component source, int id, boolean temporary) -
SFocusEvent
public SFocusEvent(com.vaadin.flow.component.Component source, int id, boolean temporary, com.vaadin.flow.component.Component opposite)
-
-
Method Details
-
isTemporary
public boolean isTemporary()JDK'sFocusEvent.isTemporary— true for cross-window focus changes the browser considers ephemeral. Our wiring passesfalseuniformly; the field is preserved for completeness and for migrated code that reads it through our ported listener. -
getOppositeComponent
public com.vaadin.flow.component.Component getOppositeComponent()The component losing/gaining focus on the other end of the transition, ornullwhen unknown (our peer subscriptions don't receive the opposite from Vaadin). Matches JDK'snullcontract for unknown opposite. -
paramString
- Overrides:
paramStringin classSComponentEvent
-