|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface 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 renderer 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
Method Summary | |
---|---|
void |
addLink(ThemeLink themeLink)
Add a link element to this theme |
void |
addScript(ThemeScript themeScript)
Add a script element to this theme |
java.lang.String |
getAppName()
Get the application name of the WAR that contains this theme |
java.lang.String |
getContextPath()
Get the context path of the servlet context in which the theme is contained. |
java.util.List |
getLinks()
Get all link elements that are defined as part of this theme |
java.lang.String |
getName()
Get the name of this theme. |
java.util.List |
getScripts()
Get all script elements that are defined as part of this layout |
javax.servlet.ServletContext |
getServletContext()
Get the servlet context in which the theme is defined |
Method Detail |
---|
javax.servlet.ServletContext getServletContext()
java.lang.String getContextPath()
java.lang.String getAppName()
java.lang.String getName()
java.util.List getScripts()
java.util.List
of script elements that are defined as part of this themejava.util.List getLinks()
java.util.List
of link elements that are defined as part of this themevoid addLink(ThemeLink themeLink)
themeLink
- the link element to addThemeLink
void addScript(ThemeScript themeScript)
themeScript
- the theme to addThemeScript
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |