Class XmlGui

java.lang.Object
io.github.toberocat.guiengine.xml.XmlGui

public class XmlGui extends Object
Represents an XML-based GUI configuration. This class is used to deserialize an XML configuration file that defines the properties of a graphical user interface. It uses Jackson's annotations to map XML elements and attributes to Java class properties during deserialization. Created: 04/02/2023
Author:
Tobias Madlberger (Tobias)
  • Constructor Details

    • XmlGui

      public XmlGui()
      Default constructor for the XmlGui class. Constructs an empty XmlGui object with default attribute values.
  • Method Details

    • getTitle

      public String getTitle()
      Get the title of the GUI.
      Returns:
      The title of the GUI.
    • setTitle

      public void setTitle(String title)
      Set the title of the GUI.
      Parameters:
      title - The title of the GUI.
    • getInterpreter

      public String getInterpreter()
      Get the interpreter used by the GUI.
      Returns:
      The interpreter used by the GUI.
    • setInterpreter

      public void setInterpreter(String interpreter)
      Set the interpreter used by the GUI.
      Parameters:
      interpreter - The interpreter to set.
    • getWidth

      public int getWidth()
      Get the width of the GUI.
      Returns:
      The width of the GUI.
    • setWidth

      public void setWidth(int width)
      Set the width of the GUI.
      Parameters:
      width - The width of the GUI.
    • getHeight

      public int getHeight()
      Get the height of the GUI.
      Returns:
      The height of the GUI.
    • setHeight

      public void setHeight(int height)
      Set the height of the GUI.
      Parameters:
      height - The height of the GUI.
    • getComponents

      public XmlComponent[] getComponents()
      Get the array of XmlComponent objects representing the GUI components.
      Returns:
      The array of XmlComponent objects.
    • setComponents

      public void setComponents(XmlComponent[] components)
      Set the array of XmlComponent objects representing the GUI components.
      Parameters:
      components - The array of XmlComponent objects to set.
    • toString

      @NotNull public @NotNull String toString()
      Convert the XmlGui object to a string representation.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the XmlGui object.