站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

SimpleTheme (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.ui.context.support
Class SimpleTheme

java.lang.Object
  extended by org.springframework.ui.context.support.SimpleTheme
All Implemented Interfaces:
Theme

public class SimpleTheme
extends Object
implements Theme

Default Theme implementation, wrapping a name and an underlying MessageSource.

Since:
17.06.2003
Author:
Juergen Hoeller

Constructor Summary
SimpleTheme(String name, MessageSource messageSource)
          Create a SimpleTheme.
 
Method Summary
 MessageSource getMessageSource()
          Return the specific MessageSource that resolves messages with respect to this theme.
 String getName()
          Return the name of the theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTheme

public SimpleTheme(String name,
                   MessageSource messageSource)
Create a SimpleTheme.

Parameters:
name - the name of the theme
messageSource - the MessageSource that resolves theme messages
Method Detail

getName

public String getName()
Description copied from interface: Theme
Return the name of the theme.

Specified by:
getName in interface Theme
Returns:
the name of the theme

getMessageSource

public MessageSource getMessageSource()
Description copied from interface: Theme
Return the specific MessageSource that resolves messages with respect to this theme.

Specified by:
getMessageSource in interface Theme
Returns:
the theme-specific MessageSource

The Spring Framework

Copyright © 2002-2007 The Spring Framework.