public class CmsCssIcon extends java.lang.Object implements com.vaadin.server.FontIcon
| Constructor and Description |
|---|
CmsCssIcon(com.vaadin.server.FontIcon icon)
Cloning constructor.
|
CmsCssIcon(java.lang.String styleName)
Constructor.
|
CmsCssIcon(java.lang.String styleName,
java.lang.String additionalStyle)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdditionalButtonStyle()
Returns the additional style name to use with OpenCms app buttons.
|
int |
getCodepoint() |
java.lang.String |
getFontFamily() |
java.lang.String |
getHtml() |
java.lang.String |
getHtml(java.lang.String title)
Returns the icon HTML with the title attribute set.
|
java.lang.String |
getHtmlWithOverlay()
Gets the html for the icon.
|
java.lang.String |
getMIMEType() |
boolean |
hasAdditionalButtonStyle()
Returns whether this icon has the additional button style set.
|
void |
setAdditionalButtonStyle(java.lang.String additionalStyle)
Sets the additional style to apply to buttons generated with this icon.
|
void |
setOverlay(java.lang.String overlayStyle)
Adds an overlay to icon.
|
public CmsCssIcon(com.vaadin.server.FontIcon icon)
icon - the icon to clonepublic CmsCssIcon(java.lang.String styleName)
styleName - the style name to assign to the icon.public CmsCssIcon(java.lang.String styleName, java.lang.String additionalStyle)
styleName - the style name to assign to the icon.additionalStyle - the additional style to apply to buttons generated with this iconpublic java.lang.String getAdditionalButtonStyle()
public int getCodepoint()
getCodepoint in interface com.vaadin.server.FontIconFontIcon.getCodepoint()public java.lang.String getFontFamily()
getFontFamily in interface com.vaadin.server.FontIconFontIcon.getFontFamily()public java.lang.String getHtml()
getHtml in interface com.vaadin.server.FontIconFontIcon.getHtml()public java.lang.String getHtml(java.lang.String title)
title - the title to setpublic java.lang.String getHtmlWithOverlay()
If overlay is set, it will be shown.
public java.lang.String getMIMEType()
getMIMEType in interface com.vaadin.server.ResourceResource.getMIMEType()public boolean hasAdditionalButtonStyle()
true in case the additional style is setpublic void setAdditionalButtonStyle(java.lang.String additionalStyle)
additionalStyle - the additional style to apply to buttons generated with this iconpublic void setOverlay(java.lang.String overlayStyle)
overlayStyle - style to be added