Package io.jmix.ui.xml
Class PropertyShortcutLoader
java.lang.Object
io.jmix.ui.xml.PropertyShortcutLoader
Class provides predefined shortcuts that can be retrieved by alias.
-
Field Summary
Modifier and TypeFieldDescriptionprotected UiComponentProperties
protected static final Map<String,
Function<UiComponentProperties, String>> protected UiScreenProperties
protected static final Map<String,
Function<UiScreenProperties, String>> -
Constructor Summary
ConstructorDescriptionPropertyShortcutLoader
(UiComponentProperties componentProperties, UiScreenProperties screenProperties) -
Method Summary
-
Field Details
-
COMPONENTS_SHORTCUT_ALIASES
protected static final Map<String,Function<UiComponentProperties, COMPONENTS_SHORTCUT_ALIASESString>> -
SCREENS_SHORTCUT_ALIASES
-
componentProperties
-
screenProperties
-
-
Constructor Details
-
PropertyShortcutLoader
@Autowired public PropertyShortcutLoader(UiComponentProperties componentProperties, UiScreenProperties screenProperties)
-
-
Method Details
-
contains
- Parameters:
alias
- shortcut alias- Returns:
true
if alias is defined
-
getShortcut
- Parameters:
alias
- shortcut alias- Returns:
- shortcut combination
- Throws:
IllegalStateException
- if provided alias is not defined
-