Class Themes

Object
org.thymeleaf.spring6.expression.Themes

@Deprecated public class Themes extends Object
Deprecated.
Theme support was deprecated in Spring 6 with no replacement.
A utility object, accessed in Thymeleaf templates by the #themes expression, that provides the same features as the Spring <spring:theme> JSP tag.
Author:
Emanuel Rabina, Daniel Fernández
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructor, obtains the current theme and locale from the processing context for code lookups later.
  • Method Summary

    Modifier and Type
    Method
    Description
    code(String code)
    Deprecated.
    Looks up and returns the value of the given key in the properties file of the currently-selected theme.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Themes

      public Themes(IExpressionContext context)
      Deprecated.
      Constructor, obtains the current theme and locale from the processing context for code lookups later.
      Parameters:
      context - the processing context being used
  • Method Details

    • code

      public String code(String code)
      Deprecated.
      Looks up and returns the value of the given key in the properties file of the currently-selected theme.
      Parameters:
      code - Key to look up in the theme properties file.
      Returns:
      The value of the code in the current theme properties file, or an empty string if the code could not be resolved.