public class CmsDynamicFunctionBean
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
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.
|
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
FORMATTER_PATH
The path of the formatter which calls the JSP.
|
构造器和说明 |
---|
CmsDynamicFunctionBean(CmsDynamicFunctionBean.Format mainFormat,
java.util.List<CmsDynamicFunctionBean.Format> otherFormats,
java.util.Map<java.lang.String,CmsXmlContentProperty> settingConfig,
CmsResource resource,
CmsResource functionFormatter)
Creates a new dynamic function bean.
|
限定符和类型 | 方法和说明 |
---|---|
protected CmsFormatterBean |
createFormatterBean(CmsDynamicFunctionBean.Format format,
boolean isPreview)
Helper method to create a formatter bean from a format.
|
CmsDynamicFunctionBean.Format |
getFormatForContainer(CmsObject cms,
java.lang.String type,
int width)
Finds the correct format for a given container type and width.
|
java.util.List<CmsFormatterBean> |
getFormatters()
Creates the formatter list for this dynamic function.
|
CmsResource |
getFunctionFormatter()
Gets the generic function formatter resource.
|
CmsDynamicFunctionBean.Format |
getMainFormat()
Gets the main format.
|
java.util.Map<java.lang.String,CmsXmlContentProperty> |
getSettings()
Returns the setting configuration for this dynamic function.
|
public static final java.lang.String FORMATTER_PATH
public CmsDynamicFunctionBean(CmsDynamicFunctionBean.Format mainFormat, java.util.List<CmsDynamicFunctionBean.Format> otherFormats, java.util.Map<java.lang.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 functionspublic CmsDynamicFunctionBean.Format getFormatForContainer(CmsObject cms, java.lang.String type, int width)
cms
- the current CMS contexttype
- the container typewidth
- the container widthpublic java.util.List<CmsFormatterBean> getFormatters()
public CmsResource getFunctionFormatter()
public CmsDynamicFunctionBean.Format getMainFormat()
public java.util.Map<java.lang.String,CmsXmlContentProperty> getSettings()
protected CmsFormatterBean createFormatterBean(CmsDynamicFunctionBean.Format format, boolean isPreview)
format
- the format beanisPreview
- if true, the formatter returned will be marked as a preview formatter