Class FontAwesomeIconProvider

java.lang.Object
io.jmix.ui.icon.FontAwesomeIconProvider
All Implemented Interfaces:
IconProvider

@Component("ui_FontAwesomeIconProvider") @Order(960) public class FontAwesomeIconProvider extends Object implements IconProvider
  • Field Details

    • FONT_AWESOME_PREFIXES

      protected static final List<String> FONT_AWESOME_PREFIXES
    • iconsCache

      protected static final com.google.common.cache.LoadingCache<String,com.vaadin.server.Resource> iconsCache
    • themeConstantsManager

      @Autowired protected ThemeConstantsManager themeConstantsManager
  • Constructor Details

    • FontAwesomeIconProvider

      public FontAwesomeIconProvider()
  • Method Details

    • getIconNonCached

      @Nullable protected static com.vaadin.server.Resource getIconNonCached(String iconName)
    • getIconResource

      public com.vaadin.server.Resource getIconResource(String iconPath)
      Specified by:
      getIconResource in interface IconProvider
      Returns:
      an instance of Resource by the given iconPath.
    • canProvide

      public boolean canProvide(@Nullable String iconPath)
      Specified by:
      canProvide in interface IconProvider
      Returns:
      true if icon provider can return an instance of Resource by the given iconPath or false otherwise
    • isFontIconsEnabled

      protected boolean isFontIconsEnabled()