|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.metadata.ServerRegistrationMetaData org.jboss.portal.theme.metadata.ThemeRegistrationMetaData org.jboss.portal.theme.impl.PortalThemeImpl
Implementation of a Theme.
PortalTheme
Constructor Summary | |
PortalThemeImpl(ServerRegistrationID id,
javax.servlet.ServletContext context,
java.lang.String contextPath,
java.lang.String appID,
java.lang.String name)
|
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 |
java.lang.String |
toString()
|
Methods inherited from class org.jboss.portal.theme.metadata.ServerRegistrationMetaData |
getRegistrationID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PortalThemeImpl(ServerRegistrationID id, javax.servlet.ServletContext context, java.lang.String contextPath, java.lang.String appID, java.lang.String name)
Method Detail |
public javax.servlet.ServletContext getServletContext()
PortalTheme
getServletContext
in interface PortalTheme
PortalTheme.getServletContext()
public java.lang.String getContextPath()
PortalTheme
getContextPath
in interface PortalTheme
PortalTheme.getContextPath()
public java.lang.String getAppID()
PortalTheme
getAppID
in interface PortalTheme
PortalTheme.getAppID()
public java.lang.String getName()
PortalTheme
getName
in interface PortalTheme
PortalTheme.getName()
public java.util.List getScripts()
PortalTheme
getScripts
in interface PortalTheme
java.util.List
of script elements that are defined as part of this themePortalTheme.getScripts()
public java.util.List getLinks()
PortalTheme
getLinks
in interface PortalTheme
java.util.List
of link elements that are defined as part of this themePortalTheme.getLinks()
public java.util.List getElements()
PortalTheme
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
getElements
in interface PortalTheme
java.util.List
of all elements of the themePortalTheme.getElements()
public void addLink(ThemeLink themeLink)
PortalTheme
addLink
in interface PortalTheme
themeLink
- the link element to addPortalTheme.addLink(org.jboss.portal.theme.ThemeLink)
public void addScript(ThemeScript themeScript)
PortalTheme
addScript
in interface PortalTheme
themeScript
- the script to addPortalTheme.addScript(org.jboss.portal.theme.ThemeScript)
public void addElement(ThemeElement themeElement)
PortalTheme
addElement
in interface PortalTheme
themeElement
- the element to add to the themeThemeElement
public java.lang.String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |