java.lang.Objectcom.realtime.crossfire.jxclient.skin.io.GuiElementParser
public class GuiElementParser
Creates gui element instances from string representations.
| Field Summary | |
|---|---|
private JXCSkinCache<GUIElement> |
definedGUIElements
The defined GUIElements. |
| Constructor Summary | |
|---|---|
GuiElementParser(JXCSkinCache<GUIElement> definedGUIElements)
Creates a new instance. |
|
| Method Summary | |
|---|---|
AbstractLabel |
lookupLabelElement(java.lang.String name)
Returns a AbstractLabel by element name. |
GUIText |
lookupTextElement(java.lang.String name)
Returns a GUIText by element name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final JXCSkinCache<GUIElement> definedGUIElements
GUIElements.
| Constructor Detail |
|---|
public GuiElementParser(@NotNull
JXCSkinCache<GUIElement> definedGUIElements)
definedGUIElements - the defined gui elements| Method Detail |
|---|
@NotNull
public AbstractLabel lookupLabelElement(@NotNull
java.lang.String name)
throws JXCSkinException
AbstractLabel by element name.
name - the element name
AbstractLabel element
JXCSkinException - if the element name is undefined
@NotNull
public GUIText lookupTextElement(@NotNull
java.lang.String name)
throws JXCSkinException
GUIText by element name.
name - the element name
GUIText element
JXCSkinException - if the element name is undefined