org.apache.jetspeed.decoration
Interface Theme


public interface Theme

Theme provides a simple aggregation of all of the decorations within the current "page."

Author:
Scott T. Weaver

Method Summary
 Decoration getDecoration(Fragment fragment)
          Returns a a Decoration for the requested fragment.
 LayoutDecoration getPageLayoutDecoration()
          Returns the the top most, "root" layout fragment's decoration.
 Collection getPortletDecorationNames()
          Get a list of portlet decoration names used by portlets on the current page.
 Set getStyleSheets()
           
 void init(Page page, DecorationFactory decoration, RequestContext context)
          Initialize a page theme
 boolean isInvalidated()
           
 void setInvalidated(boolean flag)
           
 

Method Detail

getStyleSheets

Set getStyleSheets()
Returns:
Set of all of the stylesheets needed to properly render of the decorations in this theme.

getDecoration

Decoration getDecoration(Fragment fragment)
Returns a a Decoration for the requested fragment.

Parameters:
fragment - whose decoration we want to retrieve.
Returns:
Decroration for this fragment.
See Also:
Decoration, Fragment

getPortletDecorationNames

Collection getPortletDecorationNames()
Get a list of portlet decoration names used by portlets on the current page.

Returns:
unmodifiable list for portlet decoration names.
See Also:
Decoration, Fragment

getPageLayoutDecoration

LayoutDecoration getPageLayoutDecoration()
Returns the the top most, "root" layout fragment's decoration.

Returns:
the the top most, "root" layout fragment's decoration.

init

void init(Page page,
          DecorationFactory decoration,
          RequestContext context)
Initialize a page theme

Parameters:
context -

isInvalidated

boolean isInvalidated()

setInvalidated

void setInvalidated(boolean flag)


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