org.apache.jetspeed.decoration
Class PageTheme
java.lang.Object
org.apache.jetspeed.decoration.PageTheme
- All Implemented Interfaces:
- Serializable, org.apache.jetspeed.decoration.Theme
public class PageTheme
- extends Object
- implements org.apache.jetspeed.decoration.Theme, Serializable
Default implementation of org.apache.jetspeed.decoration.Theme
- Author:
- Scott T. Weaver
- See Also:
Theme
,
Serialized Form
Constructor Summary |
PageTheme(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
org.apache.jetspeed.request.RequestContext requestContext)
|
Method Summary |
org.apache.jetspeed.om.page.ContentPage |
getContentPage()
|
org.apache.jetspeed.decoration.Decoration |
getDecoration(org.apache.jetspeed.om.page.Fragment fragment)
|
org.apache.jetspeed.om.page.Page |
getPage()
|
org.apache.jetspeed.decoration.LayoutDecoration |
getPageLayoutDecoration()
|
Collection |
getPortletDecorationNames()
|
Set |
getStyleSheets()
|
void |
init(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.decoration.DecorationFactory decoration,
org.apache.jetspeed.request.RequestContext context)
|
boolean |
isInvalidated()
|
void |
setInvalidated(boolean flag)
|
private org.apache.jetspeed.decoration.Decoration |
setupFragmentDecorations(org.apache.jetspeed.om.page.Fragment fragment,
boolean isRootLayout,
HashMap portletDecorationNames,
boolean isDesktopEnabled)
setupFragmentDecorations
Setup styleSheets and fragmentDecorations from all fragments
in page, including nested fragments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
page
private transient org.apache.jetspeed.om.page.Page page
decorationFactory
private transient org.apache.jetspeed.decoration.DecorationFactory decorationFactory
requestContext
private transient org.apache.jetspeed.request.RequestContext requestContext
styleSheets
private final Set styleSheets
layoutDecoration
private final org.apache.jetspeed.decoration.LayoutDecoration layoutDecoration
fragmentDecorations
private final Map fragmentDecorations
portletDecorationNames
private final Collection portletDecorationNames
invalidated
private boolean invalidated
PageTheme
public PageTheme(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
org.apache.jetspeed.request.RequestContext requestContext)
setupFragmentDecorations
private org.apache.jetspeed.decoration.Decoration setupFragmentDecorations(org.apache.jetspeed.om.page.Fragment fragment,
boolean isRootLayout,
HashMap portletDecorationNames,
boolean isDesktopEnabled)
- setupFragmentDecorations
Setup styleSheets and fragmentDecorations from all fragments
in page, including nested fragments.
- Parameters:
fragment
- page fragment
- Returns:
- fragment decoration
getStyleSheets
public Set getStyleSheets()
- Specified by:
getStyleSheets
in interface org.apache.jetspeed.decoration.Theme
getDecoration
public org.apache.jetspeed.decoration.Decoration getDecoration(org.apache.jetspeed.om.page.Fragment fragment)
- Specified by:
getDecoration
in interface org.apache.jetspeed.decoration.Theme
getPortletDecorationNames
public Collection getPortletDecorationNames()
- Specified by:
getPortletDecorationNames
in interface org.apache.jetspeed.decoration.Theme
getPageLayoutDecoration
public org.apache.jetspeed.decoration.LayoutDecoration getPageLayoutDecoration()
- Specified by:
getPageLayoutDecoration
in interface org.apache.jetspeed.decoration.Theme
init
public void init(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.decoration.DecorationFactory decoration,
org.apache.jetspeed.request.RequestContext context)
- Specified by:
init
in interface org.apache.jetspeed.decoration.Theme
getPage
public org.apache.jetspeed.om.page.Page getPage()
getContentPage
public org.apache.jetspeed.om.page.ContentPage getContentPage()
isInvalidated
public boolean isInvalidated()
- Specified by:
isInvalidated
in interface org.apache.jetspeed.decoration.Theme
setInvalidated
public void setInvalidated(boolean flag)
- Specified by:
setInvalidated
in interface org.apache.jetspeed.decoration.Theme
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.