Class GuiElementParser

java.lang.Object
com.realtime.crossfire.jxclient.skin.io.GuiElementParser

public class GuiElementParser extends Object
Creates gui element instances from string representations.
  • Constructor Details

    • GuiElementParser

      public GuiElementParser(@NotNull @NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements)
      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 a GUIText by element name.
      Parameters:
      name - the element name
      Returns:
      the GUIText element
      Throws:
      JXCSkinException - if the element name is undefined
    • lookupLabelElement

      @NotNull public @NotNull AbstractLabel lookupLabelElement(@NotNull @NotNull String name) throws JXCSkinException
      Returns a AbstractLabel by element name.
      Parameters:
      name - the element name
      Returns:
      the AbstractLabel element
      Throws:
      JXCSkinException - if the element name is undefined
    • lookupLabelLogElement

      @NotNull public @NotNull GUILabelLog lookupLabelLogElement(@NotNull @NotNull String name) throws JXCSkinException
      Returns a AbstractLabel by element name.
      Parameters:
      name - the element name
      Returns:
      the AbstractLabel element
      Throws:
      JXCSkinException - if the element name is undefined