org.springframework.ui.context

## 接口 Theme

- 所有已知实现类:
    SimpleTheme

      public interface Theme

  A Theme can resolve theme-specific messages, codes, file paths, etcetera (e.g. CSS and image files in a web environment). The exposed `MessageSource` supports theme-specific parameterization and internationalization.
  从以下版本开始:
    17.06.2003
  作者:
    Juergen Hoeller
  另请参阅:
    `ThemeSource`, `org.springframework.web.servlet.ThemeResolver`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `MessageSource` | `getMessageSource()` Return the specific MessageSource that resolves messages with respect to this theme.
    `String` | `getName()` Return the name of the theme.

- - ### 方法详细资料

    - #### getName

          String getName()

      Return the name of the theme.
      返回:
        the name of the theme (never `null`)

    - #### getMessageSource

          MessageSource getMessageSource()

      Return the specific MessageSource that resolves messages with respect to this theme.
      返回:
        the theme-specific MessageSource (never `null`)