public class CmsFormatterBean extends java.lang.Object implements I_CmsFormatterBean
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_CONFIGURATION_RANK
Default rank for formatters from formatter configuration files.
|
static int |
DEFAULT_SCHEMA_RANK
Default rank for formatters defined in schema.
|
static java.lang.String |
PREVIEW_TYPE
Default formatter type constant.
|
static int |
PREVIEW_WIDTH
The width of the preview window for the formatters.
|
static java.lang.String |
WILDCARD_TYPE
Wildcard formatter type for width based formatters.
|
构造器和说明 |
---|
CmsFormatterBean(java.util.Set<java.lang.String> containerTypes,
java.lang.String jspRootPath,
CmsUUID jspStructureId,
int minWidth,
int maxWidth,
boolean preview,
boolean searchContent,
java.lang.String location,
java.util.List<java.lang.String> cssHeadIncludes,
java.lang.String inlineCss,
java.util.List<java.lang.String> javascriptHeadIncludes,
java.lang.String inlineJavascript,
java.lang.String niceName,
java.lang.String resourceTypeName,
int rank,
java.lang.String id,
java.util.Map<java.lang.String,CmsXmlContentProperty> settings,
boolean isFromConfigFile,
boolean isAutoEnabled,
boolean isDetail)
Constructor for creating a new formatter configuration with resource structure id.
|
CmsFormatterBean(java.lang.String containerType,
java.lang.String rootPath,
CmsUUID structureId,
int minWidth,
int maxWidth,
boolean preview,
boolean searchContent,
java.lang.String location)
Constructor for creating a new formatter configuration with resource structure id.
|
CmsFormatterBean(java.lang.String containerType,
java.lang.String jspRootPath,
java.lang.String minWidthStr,
java.lang.String maxWidthStr,
java.lang.String preview,
java.lang.String searchContent,
java.lang.String location)
Constructor for creating a new formatter configuration without resource structure id.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
int |
hashCode() |
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.
|
static boolean |
isPreviewType(java.lang.String containerType)
Checks if the given container type matches the ADE gallery preview type.
|
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 structure id of the JSP for this formatter.
|
java.lang.String |
toString() |
public static final int DEFAULT_CONFIGURATION_RANK
public static final int DEFAULT_SCHEMA_RANK
public static final java.lang.String PREVIEW_TYPE
public static final int PREVIEW_WIDTH
public static final java.lang.String WILDCARD_TYPE
public CmsFormatterBean(java.util.Set<java.lang.String> containerTypes, java.lang.String jspRootPath, CmsUUID jspStructureId, int minWidth, int maxWidth, boolean preview, boolean searchContent, java.lang.String location, java.util.List<java.lang.String> cssHeadIncludes, java.lang.String inlineCss, java.util.List<java.lang.String> javascriptHeadIncludes, java.lang.String inlineJavascript, java.lang.String niceName, java.lang.String resourceTypeName, int rank, java.lang.String id, java.util.Map<java.lang.String,CmsXmlContentProperty> settings, boolean isFromConfigFile, boolean isAutoEnabled, boolean isDetail)
containerTypes
- the formatter container typesjspRootPath
- the formatter JSP VFS root pathjspStructureId
- the structure id of the formatter JSPminWidth
- the formatter min widthmaxWidth
- the formatter max widthpreview
- indicates if this formatter is to be used for the preview in the ADE gallery GUIsearchContent
- indicates if the content should be searchable in the online index when this formatter is usedlocation
- the location where this formatter was defined, should be an OpenCms VFS resource pathcssHeadIncludes
- inlineCss
- javascriptHeadIncludes
- inlineJavascript
- niceName
- resourceTypeName
- rank
- id
- settings
- isFromConfigFile
- isAutoEnabled
- isDetail
- public CmsFormatterBean(java.lang.String containerType, java.lang.String rootPath, CmsUUID structureId, int minWidth, int maxWidth, boolean preview, boolean searchContent, java.lang.String location)
containerType
- the formatter container typesrootPath
- the formatter JSP VFS root pathstructureId
- the structure id of the formatter JSPminWidth
- the formatter min widthmaxWidth
- the formatter max widthpreview
- indicates if this formatter is to be used for the preview in the ADE gallery GUIsearchContent
- indicates if the content should be searchable in the online index when this formatter is usedlocation
- the location where this formatter was defined, should be an OpenCms VFS resource pathpublic CmsFormatterBean(java.lang.String containerType, java.lang.String jspRootPath, java.lang.String minWidthStr, java.lang.String maxWidthStr, java.lang.String preview, java.lang.String searchContent, java.lang.String location)
containerType
- the formatter container typejspRootPath
- the formatter JSP VFS root pathminWidthStr
- the formatter min widthmaxWidthStr
- the formatter max widthpreview
- indicates if this formatter is to be used for the preview in the ADE gallery GUIsearchContent
- indicates if the content should be searchable in the online index when this formatter is usedlocation
- the location where this formatter was defined, should be an OpenCms VFS resource pathpublic static boolean isPreviewType(java.lang.String containerType)
containerType
- the container type to checktrue
if the given container type matches the ADE gallery preview typepublic java.util.Set<java.lang.String> getContainerTypes()
I_CmsFormatterBean
If this is "*", then the formatter is a width based formatter.
getContainerTypes
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getContainerTypes()
public java.util.Set<java.lang.String> getCssHeadIncludes()
I_CmsFormatterBean
getCssHeadIncludes
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getCssHeadIncludes()
public java.lang.String getId()
I_CmsFormatterBean
This method may return null because the id is not always defined for formatters, e.g. for those formatters declared in a schema.
getId
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getId()
public java.lang.String getInlineCss()
I_CmsFormatterBean
getInlineCss
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getInlineCss()
public java.lang.String getInlineJavascript()
I_CmsFormatterBean
getInlineJavascript
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getInlineJavascript()
public java.util.List<java.lang.String> getJavascriptHeadIncludes()
I_CmsFormatterBean
getJavascriptHeadIncludes
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getJavascriptHeadIncludes()
public java.lang.String getJspRootPath()
I_CmsFormatterBean
getJspRootPath
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getJspRootPath()
public CmsUUID getJspStructureId()
I_CmsFormatterBean
getJspStructureId
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getJspStructureId()
public java.lang.String getLocation()
I_CmsFormatterBean
This 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_CmsFormatterBean
I_CmsFormatterBean.getLocation()
public int getMaxWidth()
I_CmsFormatterBean
If this is not set, then Integer.MAX_VALUE
is returned.
getMaxWidth
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getMaxWidth()
public int getMinWidth()
I_CmsFormatterBean
If this is not set, then -1
is returned.
getMinWidth
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getMinWidth()
public java.lang.String getNiceName()
I_CmsFormatterBean
getNiceName
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getNiceName()
public int getRank()
I_CmsFormatterBean
getRank
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getRank()
public java.lang.String getResourceTypeName()
I_CmsFormatterBean
getResourceTypeName
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getResourceTypeName()
public java.util.Map<java.lang.String,CmsXmlContentProperty> getSettings()
I_CmsFormatterBean
getSettings
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.getSettings()
public int hashCode()
hashCode
在类中 java.lang.Object
Object.hashCode()
public boolean isAutoEnabled()
I_CmsFormatterBean
isAutoEnabled
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.isAutoEnabled()
public boolean isDetailFormatter()
I_CmsFormatterBean
isDetailFormatter
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.isDetailFormatter()
public boolean isFromFormatterConfigFile()
I_CmsFormatterBean
isFromFormatterConfigFile
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.isFromFormatterConfigFile()
public boolean isMatchAll()
I_CmsFormatterBean
isMatchAll
在接口中 I_CmsFormatterBean
I_CmsFormatterBean.isMatchAll()
public boolean isPreviewFormatter()
I_CmsFormatterBean
isPreviewFormatter
在接口中 I_CmsFormatterBean
true
if this formatter is to be used as preview in the ADE gallery GUII_CmsFormatterBean.isPreviewFormatter()
public boolean isSearchContent()
I_CmsFormatterBean
true
in case an XML content formatted with this formatter should be included in the
online full text search.isSearchContent
在接口中 I_CmsFormatterBean
true
in case an XML content formatted with this formatter should be included in the
online full text searchI_CmsFormatterBean.isSearchContent()
public boolean isTypeFormatter()
I_CmsFormatterBean
true
in case this formatter is based on type information.isTypeFormatter
在接口中 I_CmsFormatterBean
true
in case this formatter is based on type informationI_CmsFormatterBean.isTypeFormatter()
public void setJspStructureId(CmsUUID jspStructureId)
This is "package visible" as it should be only called from CmsFormatterConfiguration.initialize(org.opencms.file.CmsObject)
.
setJspStructureId
在接口中 I_CmsFormatterBean
jspStructureId
- the structure id of the JSP for this formatterpublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()