Top Description Fields Constructors Methods
org.springframework.ui.context.support

public Class SimpleTheme

extends Object
implements Theme
Class Inheritance
All Implemented Interfaces
org.springframework.ui.context.Theme
Annotations
@Deprecated
since:6.0
Imports
org.springframework.context.MessageSource, org.springframework.ui.context.Theme, org.springframework.util.Assert

Deprecated

since 6.0.

as of 6.0 in favor of using CSS, without direct replacement

Default Theme implementation, wrapping a name and an underlying org.springframework.context.MessageSource.
Author
Juergen Hoeller
Since
17.06.2003

Field Summary

Modifier and TypeField and Description
private final MessageSource
private final String

Constructor Summary

AccessConstructor and Description
public
SimpleTheme(String
the name of the theme
name
,
MessageSource
the MessageSource that resolves theme messages
messageSource
)

Create a SimpleTheme.

Method Summary

Modifier and TypeMethod and Description
public final MessageSource
getMessageSource()

Implements org.springframework.ui.context.Theme.getMessageSource.

Return the specific MessageSource that resolves messages with respect to this theme.
public final String
getName()

Implements org.springframework.ui.context.Theme.getName.

Return the name of the theme.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

messageSourceback to summary
private final MessageSource messageSource
nameback to summary
private final String name

Constructor Detail

SimpleThemeback to summary
public SimpleTheme(String name, MessageSource messageSource)

Create a SimpleTheme.

Parameters
name:String

the name of the theme

messageSource:MessageSource

the MessageSource that resolves theme messages

Method Detail

getMessageSourceback to summary
public final MessageSource getMessageSource()

Implements org.springframework.ui.context.Theme.getMessageSource.

Doc from org.springframework.ui.context.Theme.getMessageSource.

Return the specific MessageSource that resolves messages with respect to this theme.

Returns:MessageSource

the theme-specific MessageSource (never null)

Annotations
@Override
getNameback to summary
public final String getName()

Implements org.springframework.ui.context.Theme.getName.

Doc from org.springframework.ui.context.Theme.getName.

Return the name of the theme.

Returns:String

the name of the theme (never null)

Annotations
@Override