Class InputVerifierStore

java.lang.Object
com.vaadin.swingbridge.surrogates.internal.InputVerifierStore

public final class InputVerifierStore extends Object
Per-component slot for the surrogate's installed InputVerifier plus the matching Vaadin BlurNotifier Registration that drives it. Unified into one store so setInputVerifier can swap verifier and listener atomically: previous registration tears down before the new one installs, so the user-listener fan-out stays at one verify call per blur regardless of how many times the verifier is replaced.

Carve-out justification (R_vaadin_first): InputVerifier drives UI behaviour (blur-time validation, focus restoration), not API round-trip — same "UI-functionality bucket" as ButtonModel storage on SJButton. The Registration tracking is the surrogate's own subscription bookkeeping (analogous to Registrations for listener-typed APIs). Single replaceable slot, not a list, so the slot lives outside Registrations' EventListener-keyed map.

  • Method Details

    • of

      public static InputVerifierStore of(com.vaadin.flow.component.Component target)
    • getVerifier

      public InputVerifier getVerifier()
    • set

      public void set(InputVerifier newVerifier, com.vaadin.flow.shared.Registration newReg)
      Swap to newVerifier with newReg as its Vaadin blur subscription. Removes the previous registration first; either side may be null (null verifier with null reg means "uninstall").