Class GuiElementParser
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.io.GuiElementParser
-
public class GuiElementParser extends java.lang.ObjectCreates gui element instances from string representations.
-
-
Constructor Summary
Constructors Constructor Description GuiElementParser(@NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AbstractLabellookupLabelElement(@NotNull java.lang.String name)Returns aAbstractLabelby element name.@NotNull GUILabelLoglookupLabelLogElement(@NotNull java.lang.String name)Returns aAbstractLabelby element name.@NotNull GUITextlookupTextElement(@NotNull java.lang.String name)Returns aGUITextby element name.
-
-
-
Constructor Detail
-
GuiElementParser
public GuiElementParser(@NotNull @NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements)Creates a new instance.- Parameters:
definedGUIElements- the defined gui elements
-
-
Method Detail
-
lookupTextElement
@NotNull public @NotNull GUIText lookupTextElement(@NotNull @NotNull java.lang.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 java.lang.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 java.lang.String name) throws JXCSkinException
Returns aAbstractLabelby element name.- Parameters:
name- the element name- Returns:
- the
AbstractLabelelement - Throws:
JXCSkinException- if the element name is undefined
-
-