Package de.xima.fc.mdl.ui
Class CustomGuiIcon.Builder
- java.lang.Object
-
- de.xima.fc.mdl.ui.CustomGuiIcon.Builder
-
- Enclosing class:
- CustomGuiIcon
public static final class CustomGuiIcon.Builder extends Object
A new builder for a custom GUI icon.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomGuiIconbuild()CustomGuiIcon.Builderstyle(String style)Sets the inline style of the icon.CustomGuiIcon.BuilderstyleClass(String styleClass)Sets the style class of the icon.CustomGuiIcon.Buildervalue(String value)Sets the value (text content) of the icon, usually used by icons implemented via ligatures.
-
-
-
Method Detail
-
style
public CustomGuiIcon.Builder style(String style)
Sets the inline style of the icon.- Parameters:
style- Style of the icon.- Returns:
- This builder instance for chaining method calls.
-
styleClass
public CustomGuiIcon.Builder styleClass(String styleClass)
Sets the style class of the icon.- Parameters:
styleClass- Style class of the icon.- Returns:
- This builder instance for chaining method calls.
-
value
public CustomGuiIcon.Builder value(String value)
Sets the value (text content) of the icon, usually used by icons implemented via ligatures.- Parameters:
value- Text content of the icon.- Returns:
- This builder instance for chaining method calls.
-
build
public CustomGuiIcon build()
- Returns:
- A new custom GUI icon with the current settings.
-
-