Class InputMapStore
java.lang.Object
com.vaadin.swingbridge.surrogates.internal.InputMapStore
Per-component slots for Swing's three condition-scoped
InputMaps
and single ActionMap, plus the Vaadin
ShortcutRegistration map that backs
JComponentMixin.registerKeyboardAction. Each slot is lazily
allocated on first access so a component that never touches its
keymaps pays nothing.
Browser-side shortcut wiring (SD_vaadin_first_binding): maps populated via registerKeyboardAction
drive a real Vaadin Shortcuts
registration on the surrogate; installedShortcuts keys the
registration by (condition, KeyStroke) so unregister /
setInputMap-replacement can tear it down precisely.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordIdentity key for an installed (condition, KeyStroke) shortcut. -
Method Summary
Modifier and TypeMethodDescriptionLazy-allocate the singleActionMap.Lazy-allocate theWHEN_ANCESTOR_OF_FOCUSED_COMPONENTmap.Lazy-allocate theWHEN_FOCUSEDmap.Lazy-allocate theWHEN_IN_FOCUSED_WINDOWmap.static InputMapStoreof(com.vaadin.flow.component.Component target) Raw accessor — returnsnullwhen never allocated.Map<InputMapStore.ShortcutKey, com.vaadin.flow.component.ShortcutRegistration> Raw accessor — returnsnullwhen no shortcut was ever installed.SeerawWhenFocused().Raw accessor — returnsnullwhen never allocated.SeerawWhenFocused().voidsetActionMap(ActionMap map) Replace theActionMap(caller-provided; may benullto clear).voidsetWhenAncestor(InputMap map) voidsetWhenFocused(InputMap map) Replace theWHEN_FOCUSEDmap (caller-provided; may benullto clear).voidsetWhenInWindow(InputMap map) Map<InputMapStore.ShortcutKey, com.vaadin.flow.component.ShortcutRegistration> Lazy-allocate the (condition, KeyStroke) →ShortcutRegistrationmap.
-
Method Details
-
of
-
getWhenFocused
Lazy-allocate theWHEN_FOCUSEDmap. -
getWhenAncestor
Lazy-allocate theWHEN_ANCESTOR_OF_FOCUSED_COMPONENTmap. -
getWhenInWindow
Lazy-allocate theWHEN_IN_FOCUSED_WINDOWmap. -
rawWhenFocused
Raw accessor — returnsnullwhen never allocated. Used by query paths that mustn't materialise empty maps. -
rawWhenAncestor
SeerawWhenFocused(). -
rawWhenInWindow
SeerawWhenFocused(). -
setWhenFocused
Replace theWHEN_FOCUSEDmap (caller-provided; may benullto clear). -
setWhenAncestor
-
setWhenInWindow
-
getActionMap
-
rawActionMap
Raw accessor — returnsnullwhen never allocated. -
setActionMap
-
shortcuts
Lazy-allocate the (condition, KeyStroke) →ShortcutRegistrationmap. Insertion order matters for tests asserting consistent iteration. -
rawShortcuts
public Map<InputMapStore.ShortcutKey, com.vaadin.flow.component.ShortcutRegistration> rawShortcuts()Raw accessor — returnsnullwhen no shortcut was ever installed.
-