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

- 使用ThemeSource的程序包
  程序包 | 说明
  --- | ---
  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中ThemeSource的使用

    org.springframework.ui.context中ThemeSource的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `HierarchicalThemeSource` Sub-interface of ThemeSource to be implemented by objects that can resolve theme messages hierarchically.

    返回ThemeSource的org.springframework.ui.context中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ThemeSource` | HierarchicalThemeSource.`getParentThemeSource()` Return the parent of this ThemeSource, or `null` if none.

    参数类型为ThemeSource的org.springframework.ui.context中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | HierarchicalThemeSource.`setParentThemeSource(ThemeSource parent)` Set the parent that will be used to try to resolve theme messages that this object can't resolve.

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

    实现ThemeSource的org.springframework.ui.context.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `DelegatingThemeSource` Empty ThemeSource that delegates all calls to the parent ThemeSource.
    `class` | `ResourceBundleThemeSource` `ThemeSource` implementation that looks up an individual `ResourceBundle` per theme.

    返回ThemeSource的org.springframework.ui.context.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ThemeSource` | DelegatingThemeSource.`getParentThemeSource()`
    `ThemeSource` | ResourceBundleThemeSource.`getParentThemeSource()`
    `static ThemeSource` | UiApplicationContextUtils.`initThemeSource(ApplicationContext context)` Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".

    参数类型为ThemeSource的org.springframework.ui.context.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | DelegatingThemeSource.`setParentThemeSource(ThemeSource parentThemeSource)`
    `void` | ResourceBundleThemeSource.`setParentThemeSource(ThemeSource parent)`