Class FormStyleConfig

    • Method Detail

      • tokenReference

        public final String tokenReference()

        A reference to a design token to use to bind the form's style properties to an existing theme.

        Returns:
        A reference to a design token to use to bind the form's style properties to an existing theme.
      • value

        public final String value()

        The value of the style setting.

        Returns:
        The value of the style setting.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromTokenReference

        public static FormStyleConfig fromTokenReference​(String tokenReference)
        Create an instance of this class with tokenReference() initialized to the given value.

        A reference to a design token to use to bind the form's style properties to an existing theme.

        Parameters:
        tokenReference - A reference to a design token to use to bind the form's style properties to an existing theme.
      • fromValue

        public static FormStyleConfig fromValue​(String value)
        Create an instance of this class with value() initialized to the given value.

        The value of the style setting.

        Parameters:
        value - The value of the style setting.