|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.xml.containerpage.CmsDynamicFunctionBean
public class CmsDynamicFunctionBean
A class which contains the data parsed from a dynamic function XML content.
| Nested Class Summary | |
|---|---|
static class |
CmsDynamicFunctionBean.Format
A bean which contains a single format for a dynamic function, which contains of the function JSP, the container settings and the parameters. |
| Field Summary | |
|---|---|
static String |
FORMATTER_PATH
The path of the formatter which calls the JSP. |
| Constructor Summary | |
|---|---|
CmsDynamicFunctionBean(CmsDynamicFunctionBean.Format mainFormat,
List<CmsDynamicFunctionBean.Format> otherFormats,
Map<String,CmsXmlContentProperty> settingConfig,
CmsResource resource,
CmsResource functionFormatter)
Creates a new dynamic function bean. |
|
| Method Summary | |
|---|---|
protected CmsFormatterBean |
createFormatterBean(CmsDynamicFunctionBean.Format format)
Helper method to create a formatter bean from a format. |
CmsDynamicFunctionBean.Format |
getFormatForContainer(CmsObject cms,
String type,
int width)
Finds the correct format for a given container type and width. |
CmsFormatterConfiguration |
getFormatterConfiguration(CmsObject cms)
Creates the formatter configuration for this dynamic function. |
CmsResource |
getFunctionFormatter()
Gets the generic function formatter resource. |
CmsDynamicFunctionBean.Format |
getMainFormat()
Gets the main format. |
Map<String,CmsXmlContentProperty> |
getSettings()
Returns the setting configuration for this dynamic function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FORMATTER_PATH
| Constructor Detail |
|---|
public CmsDynamicFunctionBean(CmsDynamicFunctionBean.Format mainFormat,
List<CmsDynamicFunctionBean.Format> otherFormats,
Map<String,CmsXmlContentProperty> settingConfig,
CmsResource resource,
CmsResource functionFormatter)
mainFormat - the primary formatotherFormats - the list of other formatssettingConfig - the setting configurationresource - the resource from which the dynamic function bean has been readfunctionFormatter - the generic formatter for dynamic functions| Method Detail |
|---|
public CmsDynamicFunctionBean.Format getFormatForContainer(CmsObject cms,
String type,
int width)
cms - the current CMS contexttype - the container typewidth - the container width
public CmsFormatterConfiguration getFormatterConfiguration(CmsObject cms)
cms - the current CMS context
public CmsResource getFunctionFormatter()
public CmsDynamicFunctionBean.Format getMainFormat()
public Map<String,CmsXmlContentProperty> getSettings()
protected CmsFormatterBean createFormatterBean(CmsDynamicFunctionBean.Format format)
format - the format bean
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||