Package io.jmix.ui.icon
Class IconsImpl
java.lang.Object
io.jmix.ui.icon.IconsImpl
- All Implemented Interfaces:
Icons
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.icon.Icons
Icons.Icon
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<Class<? extends Icons.Icon>>
protected JmixModules
protected ThemeConstantsManager
Fields inherited from interface io.jmix.ui.icon.Icons
ICON_NAME_REGEX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Icons.Icon icon) For the givenIcons.Icon
instance, returns the icon source that can be used to set this icon to components.For the givenIcons.Icon.iconName()
, returns the icon source that can be used to set this icon to components.protected String
getThemeIcon
(String iconName) void
init()
protected String
resolveIcon
(String iconName)
-
Field Details
-
themeConstantsManager
-
modules
-
iconsCache
-
iconSets
-
-
Constructor Details
-
IconsImpl
public IconsImpl()
-
-
Method Details
-
init
@EventListener(org.springframework.context.event.ContextRefreshedEvent.class) @Order(200) public void init() -
get
Description copied from interface:Icons
For the givenIcons.Icon
instance, returns the icon source that can be used to set this icon to components.Example:
createButton.setIcon(icons.get(JmixIcon.CREATE));
- Specified by:
get
in interfaceIcons
- Parameters:
icon
-Icons.Icon
instance- Returns:
- icon source (see
Icons.Icon.source()
)
-
get
Description copied from interface:Icons
For the givenIcons.Icon.iconName()
, returns the icon source that can be used to set this icon to components.Example:
importButton.setIcon(icons.get("IMPORT"));
- Specified by:
get
in interfaceIcons
- Parameters:
icon
- icon name that contains only uppercase letters and underscores- Returns:
- icon source (see
Icons.Icon.source()
)
-
getThemeIcon
-
resolveIcon
-