Package io.jmix.ui.sys
Class ShortcutsDelegate<T>
java.lang.Object
io.jmix.ui.sys.ShortcutsDelegate<T>
- Type Parameters:
T
- type of shortcut descriptor
Handles active shortcuts for actions holder (Table or Tree)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract T
attachShortcut
(String actionId, KeyCombination keyCombination) protected abstract void
detachShortcut
(Action action, T shortcutDescriptor) protected abstract Collection<Action>
boolean
void
removeAction
(Action action) void
setAllowEnterShortcut
(boolean allowEnterShortcut)
-
Constructor Details
-
ShortcutsDelegate
public ShortcutsDelegate()
-
-
Method Details
-
isAllowEnterShortcut
public boolean isAllowEnterShortcut() -
setAllowEnterShortcut
public void setAllowEnterShortcut(boolean allowEnterShortcut) -
addAction
-
removeAction
-
attachShortcut
-
detachShortcut
-
getActions
-