Package de.xima.fc.mdl.ui
Class GuiIcon
- java.lang.Object
-
- de.xima.fc.mdl.ui.GuiIcon
-
- All Implemented Interfaces:
IGuiIcon
,Serializable
@Immutable public final class GuiIcon extends Object implements IGuiIcon
Default implementation ofIGuiIcon
for common icon libraries. Supportsfont awesome
,ui-icon
,material-icon
, andico-fc
(custom formcycle icon library).- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
String
getStyle()
String
getStyleClass()
EIconType
getType()
String
getValue()
int
hashCode()
boolean
isFaIcon()
boolean
isFcIcon()
boolean
isMaterialIcon()
boolean
isUiIcon()
static IGuiIcon
valueOf(String id)
-
-
-
Field Detail
-
EMPTY
public static final IGuiIcon EMPTY
-
-
Method Detail
-
getId
public String 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
public EIconType getType()
-
getStyle
public String getStyle()
-
getStyleClass
public String 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
public String getValue()
-
-