org.jboss.portal.theme.render
Class ThemeContext

java.lang.Object
  extended by org.jboss.portal.theme.render.ThemeContext

public class ThemeContext
extends java.lang.Object

Provide a context for theme related services.

Version:
$Revision: 8784 $
Author:
Julien Viet

Constructor Summary
ThemeContext(PortalTheme theme, ThemeServiceInfo themeServiceInfo)
           
 
Method Summary
 PortalTheme getTheme()
          Returns the render context theme, it may be null if no theme was set.
 PortalTheme getTheme(java.lang.String themeName)
          Returns a theme matching the provided theme name or null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeContext

public ThemeContext(PortalTheme theme,
                    ThemeServiceInfo themeServiceInfo)
Method Detail

getTheme

public PortalTheme getTheme()
Returns the render context theme, it may be null if no theme was set.

Returns:
the theme

getTheme

public PortalTheme getTheme(java.lang.String themeName)
Returns a theme matching the provided theme name or null if not found.

Parameters:
themeName - the theme name
Returns:
the theme