Package de.xima.fc.mdl.ui
Class GuiIcon
java.lang.Object
de.xima.fc.mdl.ui.GuiIcon
- All Implemented Interfaces:
IGuiIcon
,Serializable
Default implementation of
IGuiIcon
for common icon libraries. Supports font awesome
, ui-icon
,
material-icon
, and ico-fc
(custom formcycle icon library).- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Details
-
EMPTY
-
-
Constructor Details
-
GuiIcon
-
-
Method Details
-
getId
-
isFcIcon
public boolean isFcIcon()- Specified by:
isFcIcon
in interfaceIGuiIcon
- Returns:
- Whether the
IGuiIcon.getType()
refers to an icon from the formcycle icon font.
-
isUiIcon
public boolean isUiIcon()- Specified by:
isUiIcon
in interfaceIGuiIcon
- Returns:
- Whether the
IGuiIcon.getType()
refers to an icon from the UI (primefaces) icon font.
-
isFaIcon
public boolean isFaIcon()- Specified by:
isFaIcon
in interfaceIGuiIcon
- Returns:
- Whether the
IGuiIcon.getType()
refers to an icon from the Font Awesome icon font.
-
isMaterialIcon
public boolean isMaterialIcon()- Specified by:
isMaterialIcon
in interfaceIGuiIcon
- Returns:
- Whether the
IGuiIcon.getType()
refers to an icon from the material icons font.
-
getType
-
getStyle
-
getStyleClass
- Specified by:
getStyleClass
in interfaceIGuiIcon
- Returns:
- The CSS class(es) that need to be set on an HTML element to create this icon.
-
getValue
-
hashCode
public int hashCode() -
equals
-
valueOf
- Parameters:
id
- The ID of the icon, e.g.ico-fc-lock-alert
,alarm-off
, orfa-cog
.- Returns:
- A #
IGuiIcon
representing the icon with the given ID.
-