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 desiredGuiElementJsonBlueprints. -
Method Summary
Modifier and TypeMethodDescriptionbuild(technology.sola.json.JsonObject elementJson) Builds aGuiJsonDocumentfromJsonObject.
-
Constructor Details
-
GuiJsonDocumentBuilder
public GuiJsonDocumentBuilder(GuiTheme guiTheme, List<GuiElementJsonBlueprint<?, ?, ?>> guiElementJsonBlueprints) Creates an instance of GuiJsonDocumentBuilder with desiredGuiElementJsonBlueprints.- Parameters:
guiTheme- theGuiThemeto apply to elements parsed from JSONguiElementJsonBlueprints- the list of definitions to build from
-
-
Method Details
-
build
Builds aGuiJsonDocumentfromJsonObject.- Parameters:
elementJson- the JSON to build aGuiJsonDocumentfrom- Returns:
- the
GuiJsonDocument
-