public class FontIcon extends Icon
The icon represents a specific character (identified by codepoint,
getCodepoint(), setCodepoint(int)) within a specific font
(identified by font-family, getFontFamily(),
setFontFamily(String)).
| Constructor and Description |
|---|
FontIcon() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCodepoint()
Gets the codepoint indicating which particular icon (character) within
the font-family this is.
|
String |
getFontFamily()
Gets the font-family from which this icon comes.
|
protected String |
getFontStylename()
Get the font-family based stylename used to apply the font-family.
|
String |
getUri()
Gets the current URI for this icon.
|
static boolean |
isFontIconUri(String uri)
Checks whether or not the given uri is a font icon uri.
|
void |
setAlternateText(String alternateText)
Not implemeted for
FontIcon yet. |
protected void |
setCodepoint(int codepoint)
Sets the codepoint indicating which particular icon (character) within
the font-family this is.
|
protected void |
setFontFamily(String fontFamily)
Sets the font-family from which this icon comes.
|
void |
setUri(String uri)
Sets the URI for the icon.
|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, sinkEvents, toString, unsinkEventspublic void setUri(String uri)
IconApplicationConnection.translateVaadinUri(String) before setting.
This might be a URL referencing a image (e.g ImageIcon) or a
custom URI (e.g FontIcon).
public void setAlternateText(String alternateText)
FontIcon yet.setAlternateText in class IconalternateText - with the alternate text.Icon.setAlternateText(java.lang.String)protected void setFontFamily(String fontFamily)
setCodepoint(int) to specify a particular icon (character)
within the font.fontFamily - font-family namepublic String getFontFamily()
getCodepoint() to find out which particular icon (character)
within the font this is.protected void setCodepoint(int codepoint)
codepoint - public int getCodepoint()
protected String getFontStylename()
public static boolean isFontIconUri(String uri)
uri - Copyright © 2018 Vaadin Ltd. All rights reserved.