|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.PortalTheme
A portal theme is a collection of tags that will be injected into a layout to govern the look and feel of a portal page.
Themes are links to css, javascript and image/resource files. A theme's css needs to cooperate with the markup in the portal layout, the markup produced by the portlets, and the markup produced by the render set.
Any theme that the portal will pick up needs to be defined in a theme descriptor. The theme desciptor is an xml file in WEB-INF/ with the file name *-themes.xml
Renderer
,
PortalLayout
Field Summary | |
private ThemeInfo |
info
|
private ThemeServiceInfo |
serviceInfo
|
Constructor Summary | |
PortalTheme()
|
Method Summary | |
abstract ThemeResult |
assembleResponse(ServerRequest request,
ServerResponse response)
create the markup that this theme wants to inject into the page |
abstract void |
assembleResponse(java.io.Writer writer)
create the markup that this theme wants to inject into the page, and write it to the provided writer |
void |
destroy()
Destroy the theme. |
ThemeServiceInfo |
getServiceInfo()
|
ThemeInfo |
getThemeInfo()
|
void |
init(ThemeServiceInfo serviceInfo,
ThemeInfo info)
Initialize the theme with a reference to the theme service and the theme meta data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ThemeInfo info
private ThemeServiceInfo serviceInfo
Constructor Detail |
public PortalTheme()
Method Detail |
public abstract ThemeResult assembleResponse(ServerRequest request, ServerResponse response) throws java.io.IOException
request
- the current server requestresponse
- the current server response
java.io.IOException
public abstract void assembleResponse(java.io.Writer writer) throws java.io.IOException
writer
- the writer to write the theme markup to
java.io.IOException
public void init(ThemeServiceInfo serviceInfo, ThemeInfo info)
serviceInfo
- a theme service referenceinfo
- the meta data of the theme to renderpublic void destroy()
public ThemeInfo getThemeInfo()
public ThemeServiceInfo getServiceInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |