Package io.jmix.flowui.icon
Interface Icons
- All Known Implementing Classes:
IconsImpl
public interface Icons
Central interface to provide UI components representing icons.
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Componentget(IconFactory<?> icon) Returns a UIComponentrepresenting an icon specified by the name of the passedIconFactory.com.vaadin.flow.component.ComponentReturns a UIComponentrepresenting an icon specified by its name.
-
Method Details
-
get
Returns a UIComponentrepresenting an icon specified by the name of the passedIconFactory.This method attempts to create a
Componentfor the given icon name. If the icon name contains ':' delimiter then a newIconis created using icon collection and icon name values. Otherwise, it will attempt to locate and create the icon using predefined icon sets.- Parameters:
icon- theIconFactoryinstance to get the icon name from- Returns:
- the
Componentrepresenting the icon - Throws:
IllegalArgumentException- if the icon name isnullor cannot be resolved as a valid icon component
-
get
Returns a UIComponentrepresenting an icon specified by its name.This method attempts to create a
Componentfor the given icon name. If the icon name contains ':' delimiter then a newIconis created using icon collection and icon name values. Otherwise, it will attempt to locate and create the icon using predefined icon sets.- Parameters:
iconName- the name of the icon- Returns:
- the
Componentrepresenting the icon - Throws:
IllegalArgumentException- if the icon name isnullor cannot be resolved as a valid icon component
-