Package io.jmix.ui.icon
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 Summary
Modifier and TypeFieldDescriptionprotected static final com.google.common.cache.LoadingCache<String,
com.vaadin.server.Resource> protected ThemeConstantsManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProvide
(String iconPath) protected static com.vaadin.server.Resource
getIconNonCached
(String iconName) com.vaadin.server.Resource
getIconResource
(String iconPath) protected boolean
-
Field Details
-
FONT_AWESOME_PREFIXES
-
iconsCache
protected static final com.google.common.cache.LoadingCache<String,com.vaadin.server.Resource> iconsCache -
themeConstantsManager
-
-
Constructor Details
-
FontAwesomeIconProvider
public FontAwesomeIconProvider()
-
-
Method Details
-
getIconNonCached
-
getIconResource
- Specified by:
getIconResource
in interfaceIconProvider
- Returns:
- an instance of
Resource
by the giveniconPath
.
-
canProvide
- Specified by:
canProvide
in interfaceIconProvider
- Returns:
- true if icon provider can return an instance of
Resource
by the giveniconPath
or false otherwise
-
isFontIconsEnabled
protected boolean isFontIconsEnabled()
-