org.apache.jetspeed.decoration
Class PageTheme

java.lang.Object
  extended by org.apache.jetspeed.decoration.PageTheme
All Implemented Interfaces:
java.io.Serializable, Theme

public class PageTheme
extends java.lang.Object
implements Theme, java.io.Serializable

Default implementation of org.apache.jetspeed.decoration.Theme

Author:
Scott T. Weaver
See Also:
Theme, Serialized Form

Constructor Summary
PageTheme(Page page, DecorationFactory decorationFactory, RequestContext requestContext)
           
 
Method Summary
 ContentPage getContentPage()
           
 Decoration getDecoration(Fragment fragment)
          Returns a a Decoration for the requested fragment.
 Page getPage()
           
 LayoutDecoration getPageLayoutDecoration()
          Returns the the top most, "root" layout fragment's decoration.
 java.util.Collection getPortletDecorationNames()
          Get a list of portlet decoration names used by portlets on the current page.
 java.util.Set getStyleSheets()
           
 void init(Page page, DecorationFactory decoration, RequestContext context)
          Initialize a page theme
 boolean isInvalidated()
           
 void setInvalidated(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageTheme

public PageTheme(Page page,
                 DecorationFactory decorationFactory,
                 RequestContext requestContext)
Method Detail

getStyleSheets

public java.util.Set getStyleSheets()
Specified by:
getStyleSheets in interface Theme
Returns:
Set of all of the stylesheets needed to properly render of the decorations in this theme.

getDecoration

public Decoration getDecoration(Fragment fragment)
Description copied from interface: Theme
Returns a a Decoration for the requested fragment.

Specified by:
getDecoration in interface Theme
Parameters:
fragment - whose decoration we want to retrieve.
Returns:
Decroration for this fragment.
See Also:
Decoration, Fragment

getPortletDecorationNames

public java.util.Collection getPortletDecorationNames()
Description copied from interface: Theme
Get a list of portlet decoration names used by portlets on the current page.

Specified by:
getPortletDecorationNames in interface Theme
Returns:
unmodifiable list for portlet decoration names.
See Also:
Decoration, Fragment

getPageLayoutDecoration

public LayoutDecoration getPageLayoutDecoration()
Description copied from interface: Theme
Returns the the top most, "root" layout fragment's decoration.

Specified by:
getPageLayoutDecoration in interface Theme
Returns:
the the top most, "root" layout fragment's decoration.

init

public void init(Page page,
                 DecorationFactory decoration,
                 RequestContext context)
Description copied from interface: Theme
Initialize a page theme

Specified by:
init in interface Theme

getPage

public Page getPage()

getContentPage

public ContentPage getContentPage()

isInvalidated

public boolean isInvalidated()
Specified by:
isInvalidated in interface Theme

setInvalidated

public void setInvalidated(boolean flag)
Specified by:
setInvalidated in interface Theme


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.