Package com.vaadin.featurepack.server
Interface FFontIcon
- All Superinterfaces:
com.vaadin.flow.component.icon.IconFactory,Serializable
- All Known Implementing Classes:
FontAwesome
public interface FFontIcon
extends com.vaadin.flow.component.icon.IconFactory
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the unicode codepoint (character location) for this icon within the font given ingetFontFamily().Returns the name (font family) of the font from which this icon comes.getHtml()Returns HTML that can be used to display the icon in places where HTML can be used, such as aLabelwithAbstractErrorMessage.ContentMode.HTML.Methods inherited from interface com.vaadin.flow.component.icon.IconFactory
create
-
Method Details
-
getFontFamily
String getFontFamily()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.- Returns:
- Since:
- 7.2
-
getCodepoint
int getCodepoint()Returns the unicode codepoint (character location) for this icon within the font given ingetFontFamily().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.- Returns:
- Since:
- 7.2
-
getHtml
String getHtml()Returns HTML that can be used to display the icon in places where HTML can be used, such as aLabelwithAbstractErrorMessage.ContentMode.HTML.- Returns:
- HTML needed to display icon
- Since:
- 7.2
-