Class ClientPropertyStore

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

public final class ClientPropertyStore extends Object
Per-component client-property map backing JComponentMixin.putClientProperty / getClientProperty. Swing's contract: writing null removes the mapping, and the mixin fires PropertyChangeEvent named after key.toString() when the value actually changes. Storage is a plain HashMap — lookups aren't on any hot path.
  • Method Details

    • of

      public static ClientPropertyStore of(com.vaadin.flow.component.Component target)
    • get

      public Object get(Object key)
      Returns the current value for key, or null when unset.
    • put

      public Object put(Object key, Object value)
      Writes value, or removes the mapping when value is null. Returns the previous value (also null when unset). Callers use the old value to decide whether to fire PCE.