Interface ReactiveHook

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReactiveHook
A consumer's reaction to a slot's contents changing — the value type of the ON_INSERT/ON_TAKE behavior keys (and their observed variants). Resolved by the same WindowEngine cascade as every other behavior, so a reaction can be set per-slot, per-group, or as a library default, and overridden the identical way.

The default for a reaction key is a genuine no-op (Bloch Item 21: default methods / Null-Object only as true no-ops), so a slot nobody reacts to costs nothing and never crashes — the architecture's "designed complete, the firing seams are the one honest gap."

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ReactiveHook
    The Null-Object reaction — does nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    React to a contents change.
  • Field Details

    • NONE

      static final ReactiveHook NONE
      The Null-Object reaction — does nothing. The library default for every reaction key.
  • Method Details

    • react

      void react(ReactEvent event)
      React to a contents change. Implementations should be cheap and side-effect-honest.