@Component(value="ui_FontAwesomeIconProvider") @Order(value=960) public class FontAwesomeIconProvider extends java.lang.Object implements IconProvider
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<java.lang.String> |
FONT_AWESOME_PREFIXES |
protected static com.google.common.cache.LoadingCache<java.lang.String,com.vaadin.server.Resource> |
iconsCache |
protected ThemeConstantsManager |
themeConstantsManager |
Constructor and Description |
---|
FontAwesomeIconProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canProvide(java.lang.String iconPath) |
protected static com.vaadin.server.Resource |
getIconNonCached(java.lang.String iconName) |
com.vaadin.server.Resource |
getIconResource(java.lang.String iconPath) |
protected boolean |
isFontIconsEnabled() |
protected static final java.util.List<java.lang.String> FONT_AWESOME_PREFIXES
protected static final com.google.common.cache.LoadingCache<java.lang.String,com.vaadin.server.Resource> iconsCache
@Autowired protected ThemeConstantsManager themeConstantsManager
@Nullable protected static com.vaadin.server.Resource getIconNonCached(java.lang.String iconName)
public com.vaadin.server.Resource getIconResource(java.lang.String iconPath)
getIconResource
in interface IconProvider
Resource
by the given iconPath
.public boolean canProvide(@Nullable java.lang.String iconPath)
canProvide
in interface IconProvider
Resource
by the given iconPath
or false otherwiseprotected boolean isFontIconsEnabled()