Class IconsImpl

java.lang.Object
io.jmix.ui.icon.IconsImpl
All Implemented Interfaces:
Icons

@Component("ui_Icons") public class IconsImpl extends Object implements Icons
  • Field Details

  • Constructor Details

    • IconsImpl

      public IconsImpl()
  • Method Details

    • init

      @EventListener(org.springframework.context.event.ContextRefreshedEvent.class) @Order(200) public void init()
    • get

      @Nullable public String get(@Nullable Icons.Icon icon)
      Description copied from interface: Icons
      For the given Icons.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 interface Icons
      Parameters:
      icon - Icons.Icon instance
      Returns:
      icon source (see Icons.Icon.source())
    • get

      @Nullable public String get(@Nullable String icon)
      Description copied from interface: Icons
      For the given Icons.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 interface Icons
      Parameters:
      icon - icon name that contains only uppercase letters and underscores
      Returns:
      icon source (see Icons.Icon.source())
    • getThemeIcon

      protected String getThemeIcon(String iconName)
    • resolveIcon

      protected String resolveIcon(String iconName)