|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUIObject
com.vaadin.client.ui.Icon
com.vaadin.client.ui.FontIcon
public class FontIcon
A font-based icon implementation.
The icon represents a specific character (identified by codepoint,
getCodepoint(), setCodepoint(int)) within a specific font
(identified by font-family, getFontFamily(),
setFontFamily(String)).
| Field Summary |
|---|
| Fields inherited from class com.vaadin.client.ui.Icon |
|---|
CLASSNAME |
| Constructor Summary | |
|---|---|
FontIcon()
|
|
| Method Summary | |
|---|---|
int |
getCodepoint()
Gets the codepoint indicating which particular icon (character) within the font-family this is. |
java.lang.String |
getFontFamily()
Gets the font-family from which this icon comes. |
protected java.lang.String |
getFontStylename()
Get the font-family based stylename used to apply the font-family. |
java.lang.String |
getUri()
Gets the current URI for this icon. |
static boolean |
isFontIconUri(java.lang.String uri)
Checks whether or not the given uri is a font icon uri. |
void |
setAlternateText(java.lang.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(java.lang.String fontFamily)
Sets the font-family from which this icon comes. |
void |
setUri(java.lang.String uri)
Sets the URI for the icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontIcon()
| Method Detail |
|---|
public void setUri(java.lang.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).
setUri in class Iconuri - the URI for this iconpublic void setAlternateText(java.lang.String alternateText)
FontIcon yet.
setAlternateText in class IconalternateText - with the alternate text.Icon.setAlternateText(java.lang.String)protected void setFontFamily(java.lang.String fontFamily)
setCodepoint(int) to specify a particular icon (character)
within the font.
fontFamily - font-family namepublic java.lang.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 java.lang.String getFontStylename()
public static boolean isFontIconUri(java.lang.String uri)
uri -
public java.lang.String getUri()
Icon
getUri in class Icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||