Class MenuBarStateStore
java.lang.Object
com.vaadin.swingbridge.surrogates.internal.MenuBarStateStore
State holder for
SJMenuBar (SD_sjmenubar).
Scoped per R_vaadin_first: tracks bookkeeping the Vaadin MenuBar has no
counterpart for. Pure rendering state lives on Vaadin (the
MenuItem tree built by every rebuildFromTree call); this
holder carries the cross-rebuild pieces — accelerator
Registrations that must tear down on the next rebuild, and the
last-pushed MenuNode tree for diagnostics + idempotency checks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionPer-KeyStrokeRegistrations for installed UI-scoped Vaadin shortcuts.Last snapshot pushed viarebuildFromTree; empty at construction.booleanRe-entrancy guard. -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuBarStateStoreof(com.vaadin.flow.component.Component target)
-
Field Details
-
currentTree
-
acceleratorRegistrations
-
preventRebuild
public boolean preventRebuildRe-entrancy guard.rebuildFromTreesets this before walking the snapshot and clears it infinally. Click handlers that fire inside a toggle commit can check this and short-circuit the emulator-side rebuild push, avoiding feedback into the click that triggered them. Same shape SJSpinner / SJSlider take per SD_sjslider / SD_sjspinner.
-
-
Method Details
-
of
-