|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.types.AbstractModelObject org.springframework.extensions.surf.types.ThemeImpl
public class ThemeImpl
Default theme implementation
Field Summary |
---|
Fields inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
CONTAINER_PROPERTIES, CONTAINER_RESOURCES, customProperties, description, descriptionId, document, id, info, modelProperties, modelVersion, modificationTime, resourceContainer, title, titleId |
Fields inherited from interface org.springframework.extensions.surf.types.Theme |
---|
TYPE_ID |
Fields inherited from interface org.springframework.extensions.surf.ModelObject |
---|
PROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID |
Constructor Summary | |
---|---|
ThemeImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new theme for a given XML document. |
Method Summary | |
---|---|
Component |
getDefaultComponent(RequestContext context,
String regionId)
Gets the default component. |
String |
getDefaultComponentId(String regionId)
Gets the default component id for a given region id |
String |
getPageId(String pageTypeId)
Gets the page id given the specified page type. |
String |
getTypeId()
Returns the type id of the model object. |
void |
removeDefaultComponentId(String regionId)
Removes the default component for a given region id |
void |
setDefaultComponentId(String regionId,
String componentId)
Sets the default component id. |
void |
setDefaultPageId(String pageTypeId,
String pageId)
Sets the page id for a page type. |
Methods inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.surf.ModelObject |
---|
getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXML |
Constructor Detail |
---|
public ThemeImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document
- the documentMethod Detail |
---|
public String getTypeId()
ModelObject
getTypeId
in interface ModelObject
getTypeId
in class AbstractModelObject
public String getPageId(String pageTypeId)
Theme
getPageId
in interface Theme
pageTypeId
- the page type id
public void setDefaultPageId(String pageTypeId, String pageId)
Theme
setDefaultPageId
in interface Theme
pageTypeId
- the page type idpageId
- the page idpublic String getDefaultComponentId(String regionId)
Theme
getDefaultComponentId
in interface Theme
regionId
- the region id
public void removeDefaultComponentId(String regionId)
Theme
removeDefaultComponentId
in interface Theme
regionId
- the region idpublic void setDefaultComponentId(String regionId, String componentId)
Theme
setDefaultComponentId
in interface Theme
regionId
- the region idcomponentId
- the component idpublic Component getDefaultComponent(RequestContext context, String regionId)
Theme
getDefaultComponent
in interface Theme
context
- the contextregionId
- the region id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |