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 TypeMethodDescriptionvoid
setPropertyFromJson
(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElement
value
-
Method Details
-
setPropertyFromJson
void setPropertyFromJson(Builder stylesBuilder, String propertyKey, technology.sola.json.JsonElement value) Sets the desired property in a StylesBuilder based on theJsonElement
value- Parameters:
stylesBuilder
- the StylesBuilder to set a property ofpropertyKey
- the property of the styles builder to setvalue
- the value to set into the builder
-