Class GuiElementParser
java.lang.Object
com.realtime.crossfire.jxclient.skin.io.GuiElementParser
Creates gui element instances from string representations.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiElementParser(@NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull AbstractLabellookupLabelElement(@NotNull String name) Returns aAbstractLabelby element name.@NotNull GUILabelLoglookupLabelLogElement(@NotNull String name) Returns aAbstractLabelby element name.@NotNull GUITextlookupTextElement(@NotNull String name) Returns aGUITextby element name.
-
Constructor Details
-
GuiElementParser
Creates a new instance.- Parameters:
definedGUIElements- the defined gui elements
-
-
Method Details
-
lookupTextElement
@NotNull public @NotNull GUIText lookupTextElement(@NotNull @NotNull String name) throws JXCSkinException Returns aGUITextby element name.- Parameters:
name- the element name- Returns:
- the
GUITextelement - Throws:
JXCSkinException- if the element name is undefined
-
lookupLabelElement
@NotNull public @NotNull AbstractLabel lookupLabelElement(@NotNull @NotNull String name) throws JXCSkinException Returns aAbstractLabelby element name.- Parameters:
name- the element name- Returns:
- the
AbstractLabelelement - Throws:
JXCSkinException- if the element name is undefined
-
lookupLabelLogElement
@NotNull public @NotNull GUILabelLog lookupLabelLogElement(@NotNull @NotNull String name) throws JXCSkinException Returns aAbstractLabelby element name.- Parameters:
name- the element name- Returns:
- the
AbstractLabelelement - Throws:
JXCSkinException- if the element name is undefined
-