Module technology.sola.engine
Class TextStylesJsonValueParser
java.lang.Object
technology.sola.engine.graphics.gui.json.styles.TextStylesJsonValueParser
- All Implemented Interfaces:
StylesJsonValueParser<TextStyles.Builder<?>>
@NullMarked
public class TextStylesJsonValueParser
extends Object
implements StylesJsonValueParser<TextStyles.Builder<?>>
A
StylesJsonValueParser implementation for TextStyles.Builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPropertyFromJson(TextStyles.Builder<?> stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElementvalue
-
Constructor Details
-
TextStylesJsonValueParser
public TextStylesJsonValueParser()
-
-
Method Details
-
setPropertyFromJson
public void setPropertyFromJson(TextStyles.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<TextStyles.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
-