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

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

The Spring Framework

org.springframework.ui.context.support
Class DelegatingThemeSource

java.lang.Object
  extended by org.springframework.ui.context.support.DelegatingThemeSource
All Implemented Interfaces:
HierarchicalThemeSource, ThemeSource

public class DelegatingThemeSource
extends Object
implements HierarchicalThemeSource

Empty ThemeSource that delegates all calls to the parent ThemeSource. If no parent is available, it simply won't resolve any theme.

Used as placeholder by UiApplicationContextUtils, if a context doesn't define its own ThemeSource. Not intended for direct use in applications.

Since:
1.2.4
Author:
Juergen Hoeller
See Also:
UiApplicationContextUtils

Constructor Summary
DelegatingThemeSource()
           
 
Method Summary
 ThemeSource getParentThemeSource()
          Return the parent of this ThemeSource, or null if none.
 Theme getTheme(String themeName)
          Return the Theme instance for the given theme name.
 void setParentThemeSource(ThemeSource parentThemeSource)
          Set the parent that will be used to try to resolve theme messages that this object can't resolve.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingThemeSource

public DelegatingThemeSource()
Method Detail

setParentThemeSource

public void setParentThemeSource(ThemeSource parentThemeSource)
Description copied from interface: HierarchicalThemeSource
Set the parent that will be used to try to resolve theme messages that this object can't resolve.

Specified by:
setParentThemeSource in interface HierarchicalThemeSource
Parameters:
parentThemeSource - the parent ThemeSource that will be used to resolve messages that this object can't resolve. May be null, in which case no further resolution is possible.

getParentThemeSource

public ThemeSource getParentThemeSource()
Description copied from interface: HierarchicalThemeSource
Return the parent of this ThemeSource, or null if none.

Specified by:
getParentThemeSource in interface HierarchicalThemeSource

getTheme

public Theme getTheme(String themeName)
Description copied from interface: ThemeSource
Return the Theme instance for the given theme name. The returned Theme will resolve theme-specific messages, codes, file paths, etc (e.g. CSS and image files in a web environment).

Specified by:
getTheme in interface ThemeSource
Parameters:
themeName - name of the theme
Returns:
the respective Theme, or null if none defined

The Spring Framework

Copyright © 2002-2007 The Spring Framework.