public class CmsSchemaFormatterBeanWrapper extends java.lang.Object implements I_CmsFormatterBean
| 构造器和说明 |
|---|
CmsSchemaFormatterBeanWrapper(CmsObject cms,
I_CmsFormatterBean wrappedBean,
I_CmsXmlContentHandler contentHandler,
CmsResource resource)
Creates a new wrapper instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Set<java.lang.String> |
getContainerTypes()
Returns the formatter container type.
|
java.util.Set<java.lang.String> |
getCssHeadIncludes()
Gets the CSS head includes.
|
java.lang.String |
getId()
Returns the id of this formatter.
|
java.lang.String |
getInlineCss()
Gets the inline CSS snippets.
|
java.lang.String |
getInlineJavascript()
Gets the inline JS snippets.
|
java.util.List<java.lang.String> |
getJavascriptHeadIncludes()
Gets the Javascript head includes.
|
java.lang.String |
getJspRootPath()
Returns the root path of the formatter JSP in the OpenCms VFS.
|
CmsUUID |
getJspStructureId()
Returns the structure id of the JSP resource for this formatter.
|
java.lang.String |
getLocation()
Returns the location this formatter was defined in.
|
int |
getMaxWidth()
Returns the maximum formatter width.
|
int |
getMinWidth()
Returns the minimum formatter width.
|
java.lang.String |
getNiceName()
Gets the nice name for this formatter.
|
int |
getRank()
Gets the rank.
|
java.lang.String |
getResourceTypeName()
Gets the resource type name.
|
java.util.Map<java.lang.String,CmsXmlContentProperty> |
getSettings()
Gets the defined settings.
|
boolean |
isAutoEnabled()
Returns true if the formatter is automatically enabled.
|
boolean |
isDetailFormatter()
Returns true if the formatter can be used for detail views.
|
boolean |
isFromFormatterConfigFile()
Returns true if the formatter is from a formatter configuration file.
|
boolean |
isMatchAll()
Returns true if this formatter should match all type/width combinations.
|
boolean |
isPreviewFormatter()
Indicates if this formatter is to be used as preview in the ADE gallery GUI.
|
boolean |
isSearchContent()
Returns
true in case an XML content formatted with this formatter should be included in the
online full text search. |
boolean |
isTypeFormatter()
Returns
true in case this formatter is based on type information. |
void |
setJspStructureId(CmsUUID jspStructureId)
Sets the JSP structure id.
|
public CmsSchemaFormatterBeanWrapper(CmsObject cms, I_CmsFormatterBean wrappedBean, I_CmsXmlContentHandler contentHandler, CmsResource resource)
cms - the CMS context to usewrappedBean - the wrapped formattercontentHandler - the content handler to ask for additional informationresource - the resource which should be used to ask the content handler for additional informationpublic java.util.Set<java.lang.String> getContainerTypes()
I_CmsFormatterBeanIf this is "*", then the formatter is a width based formatter.
getContainerTypes 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getContainerTypes()public java.util.Set<java.lang.String> getCssHeadIncludes()
I_CmsFormatterBeangetCssHeadIncludes 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getCssHeadIncludes()public java.lang.String getId()
I_CmsFormatterBeanThis method may return null because the id is not always defined for formatters, e.g. for those formatters declared in a schema.
getId 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getId()public java.lang.String getInlineCss()
I_CmsFormatterBeangetInlineCss 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getInlineCss()public java.lang.String getInlineJavascript()
I_CmsFormatterBeangetInlineJavascript 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getInlineJavascript()public java.util.List<java.lang.String> getJavascriptHeadIncludes()
I_CmsFormatterBeangetJavascriptHeadIncludes 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getJavascriptHeadIncludes()public java.lang.String getJspRootPath()
I_CmsFormatterBeangetJspRootPath 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getJspRootPath()public CmsUUID getJspStructureId()
I_CmsFormatterBeangetJspStructureId 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getJspStructureId()public java.lang.String getLocation()
I_CmsFormatterBeanThis will be an OpenCms VFS root path, either to the XML schema XSD, or the configuration file this formatter was defined in, or to the JSP that makes up this formatter.
getLocation 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getLocation()public int getMaxWidth()
I_CmsFormatterBean
If this is not set, then Integer.MAX_VALUE is returned.
getMaxWidth 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getMaxWidth()public int getMinWidth()
I_CmsFormatterBean
If this is not set, then -1 is returned.
getMinWidth 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getMinWidth()public java.lang.String getNiceName()
I_CmsFormatterBeangetNiceName 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getNiceName()public int getRank()
I_CmsFormatterBeangetRank 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getRank()public java.lang.String getResourceTypeName()
I_CmsFormatterBeangetResourceTypeName 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getResourceTypeName()public java.util.Map<java.lang.String,CmsXmlContentProperty> getSettings()
I_CmsFormatterBeangetSettings 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.getSettings()public boolean isAutoEnabled()
I_CmsFormatterBeanisAutoEnabled 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.isAutoEnabled()public boolean isDetailFormatter()
I_CmsFormatterBeanisDetailFormatter 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.isDetailFormatter()public boolean isFromFormatterConfigFile()
I_CmsFormatterBeanisFromFormatterConfigFile 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.isFromFormatterConfigFile()public boolean isMatchAll()
I_CmsFormatterBeanisMatchAll 在接口中 I_CmsFormatterBeanI_CmsFormatterBean.isMatchAll()public boolean isPreviewFormatter()
I_CmsFormatterBeanisPreviewFormatter 在接口中 I_CmsFormatterBeantrue if this formatter is to be used as preview in the ADE gallery GUII_CmsFormatterBean.isPreviewFormatter()public boolean isSearchContent()
I_CmsFormatterBeantrue in case an XML content formatted with this formatter should be included in the
online full text search.isSearchContent 在接口中 I_CmsFormatterBeantrue in case an XML content formatted with this formatter should be included in the
online full text searchI_CmsFormatterBean.isSearchContent()public boolean isTypeFormatter()
I_CmsFormatterBeantrue in case this formatter is based on type information.isTypeFormatter 在接口中 I_CmsFormatterBeantrue in case this formatter is based on type informationI_CmsFormatterBean.isTypeFormatter()public void setJspStructureId(CmsUUID jspStructureId)
I_CmsFormatterBeansetJspStructureId 在接口中 I_CmsFormatterBeanjspStructureId - the jsp structure idI_CmsFormatterBean.setJspStructureId(org.opencms.util.CmsUUID)