com.interface21.ui.context.support
Class SimpleTheme

java.lang.Object
  |
  +--com.interface21.ui.context.support.SimpleTheme
All Implemented Interfaces:
Theme

public class SimpleTheme
extends java.lang.Object
implements Theme

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

Since:
17.06.2003
Author:
Juergen Hoeller

Constructor Summary
SimpleTheme(java.lang.String name, MessageSource messageSource)
           
 
Method Summary
 MessageSource getMessageSource()
          Return the specific MessageSource that resolves messages with respect to this theme.
 java.lang.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(java.lang.String name,
                   MessageSource messageSource)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Theme
Return the name of the theme.
Specified by:
getName in interface Theme
Following copied from interface: com.interface21.ui.context.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
Following copied from interface: com.interface21.ui.context.Theme
Returns:
the theme-specific MessageSource


Rod Johnson and Spring contributors 2001-2003.