Package de.xima.fc.beans.interfaces
Interface IGuiIcon
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ClientIconWrapper,CustomGuiIcon,GuiIcon
public interface IGuiIcon extends Serializable
Represents an icon used in the fronted. This class abstracts over the different icons fonts such as font awesome and material icons.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetCss()Additional CSS that needs to be added to the page for this icon to work.StringgetId()default StringgetStyle()StringgetStyleClass()EIconTypegetType()StringgetValue()default booleanisEmpty()booleanisFaIcon()booleanisFcIcon()booleanisMaterialIcon()booleanisPrimeIcon()booleanisUiIcon()
-
-
-
Method Detail
-
getCss
default String getCss()
Additional CSS that needs to be added to the page for this icon to work.- Since:
- 8.5.0
-
getId
String getId()
- Returns:
- The ID of this icon, eg.
ico-fc-lock-alert.
-
getStyle
default String getStyle()
- Returns:
- The inline style that need to be set on an HTML element to create this icon. Can be used to include custom base64 inline icons.
-
getStyleClass
String getStyleClass()
- Returns:
- The CSS class(es) that need to be set on an HTML element to create this icon.
-
getType
EIconType getType()
- Returns:
- The type of icon font of this icon.
-
getValue
String getValue()
- Returns:
- The
textValuethat needs to be set on an HTML element to create this icon.
-
isEmpty
default boolean isEmpty()
- Returns:
trueif this icon is empty (no icon),falseotherwise
-
isFaIcon
boolean isFaIcon()
- Returns:
- Whether the
getType()refers to an icon from the Font Awesome icon font.
-
isFcIcon
boolean isFcIcon()
- Returns:
- Whether the
getType()refers to an icon from the formcycle icon font.
-
isMaterialIcon
boolean isMaterialIcon()
- Returns:
- Whether the
getType()refers to an icon from the material icon font.
-
isPrimeIcon
boolean isPrimeIcon()
- Returns:
- Whether the
getType()refers to an icon from the prime icons icon font.
-
isUiIcon
boolean isUiIcon()
- Returns:
- Whether the
getType()refers to an icon from the UI (primefaces) icon font.
-
-