Class XmlGui
java.lang.Object
io.github.toberocat.guiengine.xml.XmlGui
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the array of XmlComponent objects representing the GUI components.int
Get the height of the GUI.Get the interpreter used by the GUI.getTitle()
Get the title of the GUI.int
getWidth()
Get the width of the GUI.void
setComponents
(XmlComponent[] components) Set the array of XmlComponent objects representing the GUI components.void
setHeight
(int height) Set the height of the GUI.void
setInterpreter
(String interpreter) Set the interpreter used by the GUI.void
Set the title of the GUI.void
setWidth
(int width) Set the width of the GUI.@NotNull String
toString()
Convert the XmlGui object to a string representation.
-
Constructor Details
-
XmlGui
public XmlGui()Default constructor for the XmlGui class. Constructs an empty XmlGui object with default attribute values.
-
-
Method Details
-
getTitle
Get the title of the GUI.- Returns:
- The title of the GUI.
-
setTitle
Set the title of the GUI.- Parameters:
title
- The title of the GUI.
-
getInterpreter
Get the interpreter used by the GUI.- Returns:
- The interpreter used by the GUI.
-
setInterpreter
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
Get the array of XmlComponent objects representing the GUI components.- Returns:
- The array of XmlComponent objects.
-
setComponents
Set the array of XmlComponent objects representing the GUI components.- Parameters:
components
- The array of XmlComponent objects to set.
-
toString
Convert the XmlGui object to a string representation.
-