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 ofIGuiIconfor 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 booleanequals(Object obj)StringgetCss()Additional CSS that needs to be added to the page for this icon to work.StringgetId()StringgetStyle()StringgetStyleClass()EIconTypegetType()StringgetValue()inthashCode()booleanisFaIcon()booleanisFcIcon()booleanisMaterialIcon()booleanisPrimeIcon()booleanisUiIcon()static IGuiIconvalueOf(String id)
-
-
-
Field Detail
-
EMPTY
public static final IGuiIcon EMPTY
-
-
Method Detail
-
getCss
public String getCss()
Description copied from interface:IGuiIconAdditional CSS that needs to be added to the page for this icon to work.
-
getId
public String getId()
-
getStyle
public String getStyle()
-
getStyleClass
public String getStyleClass()
- Specified by:
getStyleClassin interfaceIGuiIcon- Returns:
- The CSS class(es) that need to be set on an HTML element to create this icon.
-
getType
public EIconType getType()
-
getValue
public String getValue()
-
isFaIcon
public boolean isFaIcon()
- Specified by:
isFaIconin interfaceIGuiIcon- Returns:
- Whether the
IGuiIcon.getType()refers to an icon from the Font Awesome icon font.
-
isFcIcon
public boolean isFcIcon()
- Specified by:
isFcIconin interfaceIGuiIcon- Returns:
- Whether the
IGuiIcon.getType()refers to an icon from the formcycle icon font.
-
isMaterialIcon
public boolean isMaterialIcon()
- Specified by:
isMaterialIconin interfaceIGuiIcon- Returns:
- Whether the
IGuiIcon.getType()refers to an icon from the material icon font.
-
isPrimeIcon
public boolean isPrimeIcon()
- Specified by:
isPrimeIconin interfaceIGuiIcon- Returns:
- Whether the
IGuiIcon.getType()refers to an icon from the prime icons icon font.
-
isUiIcon
public boolean isUiIcon()
- Specified by:
isUiIconin interfaceIGuiIcon- Returns:
- Whether the
IGuiIcon.getType()refers to an icon from the UI (primefaces) icon font.
-
-