Module technology.sola.engine
Interface StylesJsonValueParser<Builder extends BaseStyles.Builder<?>>
- Type Parameters:
Builder- the builder type extendingBaseStyles
- All Known Implementing Classes:
BaseStylesJsonValueParser,TextInputStylesJsonValueParser,TextStylesJsonValueParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@NullMarked
@FunctionalInterface
public interface StylesJsonValueParser<Builder extends BaseStyles.Builder<?>>
StylesJsonValueParser handles parsing a style value from a
JsonElement and setting it into a StylesBuilder.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetPropertyFromJson(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElementvalue
-
Method Details
-
setPropertyFromJson
void setPropertyFromJson(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElementvalue- Parameters:
stylesBuilder- the StylesBuilder to set a property ofpropertyKey- the property of the styles builder to setvalue- the value to set into the builder
-