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
FieldsModifier and TypeFieldDescriptionprotected List<Class<? extends Icons.Icon>>protected JmixModulesprotected ThemeConstantsManagerFields inherited from interface io.jmix.ui.icon.Icons
ICON_NAME_REGEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(Icons.Icon icon) For the givenIcons.Iconinstance, 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 StringgetThemeIcon(String iconName) voidinit()protected StringresolveIcon(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:IconsFor the givenIcons.Iconinstance, returns the icon source that can be used to set this icon to components.Example:
createButton.setIcon(icons.get(JmixIcon.CREATE));
- Specified by:
getin interfaceIcons- Parameters:
icon-Icons.Iconinstance- Returns:
- icon source (see
Icons.Icon.source())
-
get
Description copied from interface:IconsFor 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:
getin interfaceIcons- Parameters:
icon- icon name that contains only uppercase letters and underscores- Returns:
- icon source (see
Icons.Icon.source())
-
getThemeIcon
-
resolveIcon
-