Module technology.sola.engine
Class GuiJsonDocumentBuilder
java.lang.Object
technology.sola.engine.graphics.gui.json.GuiJsonDocumentBuilder
GuiJsonDocumentBuilder handles building
GuiJsonDocument
instances from a JsonObject
.-
Constructor Summary
ConstructorsConstructorDescriptionGuiJsonDocumentBuilder
(GuiTheme guiTheme, List<GuiElementJsonBlueprint<?, ?, ?>> guiElementJsonBlueprints) Creates an instance of GuiJsonDocumentBuilder with desiredGuiElementJsonBlueprint
s. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(technology.sola.json.JsonObject elementJson) Builds aGuiJsonDocument
fromJsonObject
.
-
Constructor Details
-
GuiJsonDocumentBuilder
public GuiJsonDocumentBuilder(GuiTheme guiTheme, List<GuiElementJsonBlueprint<?, ?, ?>> guiElementJsonBlueprints) Creates an instance of GuiJsonDocumentBuilder with desiredGuiElementJsonBlueprint
s.- Parameters:
guiTheme
- theGuiTheme
to apply to elements parsed from JSONguiElementJsonBlueprints
- the list of definitions to build from
-
-
Method Details
-
build
Builds aGuiJsonDocument
fromJsonObject
.- Parameters:
elementJson
- the JSON to build aGuiJsonDocument
from- Returns:
- the
GuiJsonDocument
-