@Component @Order(value=960) public class FontAwesomeIconProvider extends java.lang.Object implements IconProvider
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String[] |
FONT_AWESOME_PREFIXES |
protected static com.google.common.cache.LoadingCache<java.lang.String,com.vaadin.server.Resource> |
iconsCache |
protected ThemeConstantsManager |
themeConstantsManager |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
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.lang.String[] FONT_AWESOME_PREFIXES
protected static final com.google.common.cache.LoadingCache<java.lang.String,com.vaadin.server.Resource> iconsCache
@Inject 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(java.lang.String iconPath)
canProvide
in interface IconProvider
Resource
by the given iconPath
or false otherwiseprotected boolean isFontIconsEnabled()