Enum Class FontAwesome

java.lang.Object
java.lang.Enum<FontAwesome>
com.vaadin.featurepack.ui.FontAwesome
All Implemented Interfaces:
FFontIcon, com.vaadin.flow.component.icon.IconFactory, Serializable, Comparable<FontAwesome>, Constable

public enum FontAwesome extends Enum<FontAwesome> implements FFontIcon
FontAwesome set of font icons.

Each icon comes from the FontAwesome font family, which is included in the theme.

The Font Awesome Free version currently included is 6.7.2. Available Icon enums are same as in Vaadin 7. Original set was based on Font-Awesome version 4.4.0. Around a hundred icons are not available, or names have changes or icons are only available in pro version.

About 30 icons that would be missing otherwise are replaced with Vaadin Icons.

Author:
Vaadin Ltd
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static FontAwesome[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontAwesome valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFontFamily

      public String getFontFamily()
      Description copied from interface: FFontIcon
      Returns the name (font family) of the font from which this icon comes. The name is used to apply the correct font where the icon is used.
      Specified by:
      getFontFamily in interface FFontIcon
      Returns:
    • getCodepoint

      public int getCodepoint()
      Description copied from interface: FFontIcon
      Returns the unicode codepoint (character location) for this icon within the font given in FFontIcon.getFontFamily().

      For example, 0x0021 would in a regular font be the codepoint for the exclamation-point character.
      When constructing icon fonts, it might be a good idea to use the codepoints in the "Private use area", from 0xE000 0xF8FF.

      Specified by:
      getCodepoint in interface FFontIcon
      Returns:
    • getHtml

      public String getHtml()
      Description copied from interface: FFontIcon
      Returns HTML that can be used to display the icon in places where HTML can be used, such as a Label with AbstractErrorMessage.ContentMode.HTML.
      Specified by:
      getHtml in interface FFontIcon
      Returns:
      HTML needed to display icon
    • isBrand

      public boolean isBrand()
    • create

      public com.vaadin.flow.component.icon.Icon create()
      Specified by:
      create in interface com.vaadin.flow.component.icon.IconFactory
    • getGroup

      public String getGroup()