Package io.jmix.ui.icon
Interface IconProvider
- All Known Implementing Classes:
ClassPathIconProvider
,FallbackIconProvider
,FileIconProvider
,FontAwesomeIconProvider
,ThemeIconProvider
public interface IconProvider
Marker interface for beans that can provide
Resource
by some icon path.
The IconResolver
bean obtains all beans that implements IconProvider
interface and iterates over them
to find the one that can provide Resource
for icon. So you should use this interface to mark new icon provider
to use your custom icon set.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProvide
(String iconPath) com.vaadin.server.Resource
getIconResource
(String iconPath)
-
Method Details
-
getIconResource
- Returns:
- an instance of
Resource
by the giveniconPath
.
-
canProvide
- Returns:
- true if icon provider can return an instance of
Resource
by the giveniconPath
or false otherwise
-