Class IconsImpl

java.lang.Object
io.jmix.flowui.icon.impl.IconsImpl
All Implemented Interfaces:
Icons

@Component("flowui_Icons") public class IconsImpl extends Object implements Icons
  • Constructor Details

    • IconsImpl

      public IconsImpl()
  • Method Details

    • get

      public com.vaadin.flow.component.Component get(IconFactory<?> icon)
      Description copied from interface: Icons
      Returns a UI Component representing an icon specified by the name of the passed IconFactory.

      This method attempts to create a Component for the given icon name. If the icon name contains ':' delimiter then a new Icon is created using icon collection and icon name values. Otherwise, it will attempt to locate and create the icon using predefined icon sets.

      Specified by:
      get in interface Icons
      Parameters:
      icon - the IconFactory instance to get the icon name from
      Returns:
      the Component representing the icon
    • get

      public com.vaadin.flow.component.Component get(String iconName)
      Description copied from interface: Icons
      Returns a UI Component representing an icon specified by its name.

      This method attempts to create a Component for the given icon name. If the icon name contains ':' delimiter then a new Icon is created using icon collection and icon name values. Otherwise, it will attempt to locate and create the icon using predefined icon sets.

      Specified by:
      get in interface Icons
      Parameters:
      iconName - the name of the icon
      Returns:
      the Component representing the icon
    • createIconFromCollection

      protected com.vaadin.flow.component.icon.Icon createIconFromCollection(String iconName)
    • createIconByName

      protected com.vaadin.flow.component.Component createIconByName(String iconName)