|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
addElement(ThemeElement themeElement)
Add an element of this theme. |
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 |
getAppID()
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 |
getElements()
Get all elements of this theme. |
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 |
public javax.servlet.ServletContext getServletContext()
public java.lang.String getContextPath()
public java.lang.String getAppID()
public java.lang.String getName()
public java.util.List getScripts()
java.util.List
of script elements that are defined as part of this themepublic java.util.List getLinks()
java.util.List
of link elements that are defined as part of this themepublic java.util.List getElements()
Elements of a theme are all the child nodes in the HEAD tag that are part of this theme. A theme can currently have script and link tags
java.util.List
of all elements of the themepublic void addLink(ThemeLink themeLink)
themeLink
- the link element to addThemeLink
public void addScript(ThemeScript themeScript)
themeScript
- the script to addThemeScript
public void addElement(ThemeElement themeElement)
themeElement
- the element to add to the themeThemeElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |