org.springframework.ui.context.support

## 类 SimpleTheme

- java.lang.Object
- - org.springframework.ui.context.support.SimpleTheme

- 所有已实现的接口:
    Theme

      public class SimpleTheme
      extends Object
      implements Theme

  Default `Theme` implementation, wrapping a name and an underlying `MessageSource`.
  从以下版本开始:
    17.06.2003
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleTheme(String name, MessageSource messageSource)` Create a SimpleTheme.

  - ### 方法概要

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

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleTheme

          public SimpleTheme(String name,
                             MessageSource messageSource)

      Create a SimpleTheme.
      参数:
        `name` - the name of the theme
        `messageSource` - the MessageSource that resolves theme messages

  - ### 方法详细资料

    - #### getName

          public final String getName()

      从接口复制的说明: `Theme`
      Return the name of the theme.
      指定者:
        `getName` 在接口中 `Theme`
      返回:
        the name of the theme (never `null`)

    - #### getMessageSource

          public final MessageSource getMessageSource()

      从接口复制的说明: `Theme`
      Return the specific MessageSource that resolves messages with respect to this theme.
      指定者:
        `getMessageSource` 在接口中 `Theme`
      返回:
        the theme-specific MessageSource (never `null`)