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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for enumerations that represent icon sets. -
Field Summary
Fields -
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.
-
Field Details
-
ICON_NAME_REGEX
-
-
Method Details
-
get
For the givenIcons.Iconinstance, returns the icon source that can be used to set this icon to components.Example:
createButton.setIcon(icons.get(JmixIcon.CREATE));
- Parameters:
icon-Icons.Iconinstance- 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())
-