## 接口的使用
org.springframework.ui.context.Theme

- 使用Theme的程序包
  程序包 | 说明
  --- | ---
  org.springframework.ui.context | Contains classes defining the application context subinterface for UI applications.
  org.springframework.ui.context.support | Classes supporting the org.springframework.ui.context package.

- - ### org.springframework.ui.context中Theme的使用

    返回Theme的org.springframework.ui.context中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Theme` | ThemeSource.`getTheme(String themeName)` Return the Theme instance for the given theme name.

  - ### org.springframework.ui.context.support中Theme的使用

    实现Theme的org.springframework.ui.context.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `SimpleTheme` Default `Theme` implementation, wrapping a name and an underlying `MessageSource`.

    返回Theme的org.springframework.ui.context.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Theme` | DelegatingThemeSource.`getTheme(String themeName)`
    `Theme` | ResourceBundleThemeSource.`getTheme(String themeName)` This implementation returns a SimpleTheme instance, holding a ResourceBundle-based MessageSource whose basename corresponds to the given theme name (prefixed by the configured "basenamePrefix").

    参数类型为Theme的org.springframework.ui.context.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | ResourceBundleThemeSource.`initParent(Theme theme)` Initialize the MessageSource of the given theme with the one from the corresponding parent of this ThemeSource.