类 SimpleTheme
- java.lang.Object
- org.springframework.ui.context.support.SimpleTheme
- 所有已实现的接口:
Theme
public class SimpleTheme extends Object implements Theme
DefaultTheme
implementation, wrapping a name and an underlyingMessageSource
.- 从以下版本开始:
- 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.
构造器详细资料
SimpleTheme
public SimpleTheme(String name, MessageSource messageSource)
Create a SimpleTheme.- 参数:
name
- the name of the thememessageSource
- the MessageSource that resolves theme messages
方法详细资料
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
)