Class SFocusEvent

All Implemented Interfaces:
Serializable

public class SFocusEvent extends SComponentEvent
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 Details

  • 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's FocusEvent.isTemporary — true for cross-window focus changes the browser considers ephemeral. Our wiring passes false uniformly; 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, or null when unknown (our peer subscriptions don't receive the opposite from Vaadin). Matches JDK's null contract for unknown opposite.
    • paramString

      public String paramString()
      Overrides:
      paramString in class SComponentEvent