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<?>>
  • 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: StylesJsonValueParser
      Sets the desired property in a StylesBuilder based on the JsonElement value
      Specified by:
      setPropertyFromJson in interface StylesJsonValueParser<BaseStyles.Builder<?>>
      Parameters:
      stylesBuilder - the StylesBuilder to set a property of
      propertyKey - the property of the styles builder to set
      value - the value to set into the builder