Package io.jmix.ui.icon
Interface Icons
- All Known Implementing Classes:
IconsImpl
public interface Icons
A bean that resolves icon sources for icon sets defined for the project.
Examples:
excelButton.setIcon(icons.get(JmixIcon.EXCEL_ACTION)); helpButton.setIcon(icons.get(JmixIcon.INFO));
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface for enumerations that represent icon sets. -
Field 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.
-
Field Details
-
ICON_NAME_REGEX
-
-
Method Details
-
get
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));
- Parameters:
icon
-Icons.Icon
instance- Returns:
- icon source (see
Icons.Icon.source()
)
-
get
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"));
- Parameters:
iconName
- icon name that contains only uppercase letters and underscores- Returns:
- icon source (see
Icons.Icon.source()
)
-