|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.portalserver.Theme
A theme. - A theme is a collection of color choices and (possibly) images that style a Portal. A theme is inherently tied to to the underlying design of the portal page; for example, a theme that stores and sets a color for a context bar is only useful if the design of the Portal that uses such a theme has, in fact, a context bar.
A particular portal design/layout is made up of components such as context bar, colored horizontal rules, tabbed panes...etc. which we refer to as a skin. A skin can have a theme applied to it, which renders components with desired colors, fonts, and background images. This Theme class is for enhancing the default skin that ships with Portal Server.
If a developer desires to create their own Portal design or skin, then the following files would be need to be implemented:
buildStyleBlock()
method uses (see below)This class provides setters and getters for all of the elements in the default Portal Server skin, plus a method that builds a block of CSS tags that are inserted into the output stream and used to override default choices for the default skin.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
The type of the DataObject
that stands behind this DomainObject . |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE, versionId |
Constructor Summary | |
Theme(com.arsdigita.persistence.DataObject dataObject)
|
|
Theme(String name)
|
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String BASE_DATA_OBJECT_TYPE
DataObject
that stands behind this DomainObject
.
Constructor Detail |
public Theme(com.arsdigita.persistence.DataObject dataObject)
public Theme(String name)
Method Detail |
protected String getBaseDataObjectType()
public static Theme retrieveTheme(BigDecimal themeID)
public static Theme retrieveTheme(com.arsdigita.persistence.DataObject dataObject)
dataObject
- the data object of the Theme to retrieve.
public static Theme retrieveTheme(com.arsdigita.persistence.OID oid)
oid
- the OID of the Theme to retrieve.public static ThemeCollection retrieveAllThemes()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String desc)
public void setContextBarColor(String color)
public String getContextBarColor()
public void setContextBarTextColor(String color)
public String getContextBarTextColor()
public void setActiveTabColor(String color)
public String getActiveTabColor()
public void setInactiveTabColor(String color)
public String getInactiveTabColor()
public void setActiveTabTextColor(String color)
public String getActiveTabTextColor()
public void setInactiveTabTextColor(String color)
public String getInactiveTabTextColor()
public void setTopRuleColor(String color)
public String getTopRuleColor()
public void setBottomRuleColor(String color)
public String getBottomRuleColor()
public void setPortletHeaderColor(String color)
public String getPortletHeaderColor()
public void setPortletIconColor(String color)
public String getPortletIconColor()
public void setPortletBorderColor(String color)
public String getPortletBorderColor()
public void setPortletBorderStyle(String style)
public String getPortletBorderStyle()
public void setPortletHeaderTextColor(String color)
public String getPortletHeaderTextColor()
public void setPageBGColor(String color)
public String getPageBGColor()
public void setPageBGImage(String url)
public String getPageBGImage()
public void setNarrowBGColor(String color)
public String getNarrowBGColor()
public void setBodyTextColor(String color)
public String getBodyTextColor()
protected void afterSave()
public StringBuffer buildStyleBlock()
Themes
Theme
for an explanation of building and using Themes.
buildStyleBlock
in interface Themes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |