Module technology.sola.engine
Class BaseStylesJsonValueParser
java.lang.Object
technology.sola.engine.graphics.gui.json.styles.BaseStylesJsonValueParser
- All Implemented Interfaces:
StylesJsonValueParser<BaseStyles.Builder<?>>
@NullMarked
public class BaseStylesJsonValueParser
extends Object
implements StylesJsonValueParser<BaseStyles.Builder<?>>
A
StylesJsonValueParser implementation for BaseStyles.Builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPropertyFromJson(BaseStyles.Builder<?> stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElementvalue
-
Constructor Details
-
BaseStylesJsonValueParser
public BaseStylesJsonValueParser()
-
-
Method Details
-
setPropertyFromJson
public void setPropertyFromJson(BaseStyles.Builder<?> stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Description copied from interface:StylesJsonValueParserSets the desired property in a StylesBuilder based on theJsonElementvalue- Specified by:
setPropertyFromJsonin interfaceStylesJsonValueParser<BaseStyles.Builder<?>>- Parameters:
stylesBuilder- the StylesBuilder to set a property ofpropertyKey- the property of the styles builder to setvalue- the value to set into the builder
-