|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.xml.containerpage.CmsFormatterBean
public class CmsFormatterBean
A bean containing formatter configuration data as strings.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
CmsFormatterBean(java.lang.String containerType,
java.lang.String jspRootPath,
CmsUUID jspStructureId,
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getContainerType()
Returns the formatter container type. |
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. |
int |
hashCode()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PREVIEW_TYPE
public static final int PREVIEW_WIDTH
public static final java.lang.String WILDCARD_TYPE
| Constructor Detail |
|---|
public CmsFormatterBean(java.lang.String containerType,
java.lang.String jspRootPath,
CmsUUID jspStructureId,
int minWidth,
int maxWidth,
boolean preview,
boolean searchContent,
java.lang.String location)
containerType - the formatter container typejspRootPath - 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 path
public 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 path| Method Detail |
|---|
public static boolean isPreviewType(java.lang.String containerType)
containerType - the container type to check
true if the given container type matches the ADE gallery preview typepublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getContainerType()
If this is "*", then the formatter is a width based formatter.
public java.lang.String getJspRootPath()
public CmsUUID getJspStructureId()
public java.lang.String getLocation()
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.
public int getMaxWidth()
If this is not set, then Integer.MAX_VALUE is returned.
public int getMinWidth()
If this is not set, then -1 is returned.
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isMatchAll()
public boolean isPreviewFormatter()
true if this formatter is to be used as preview in the ADE gallery GUIpublic boolean isSearchContent()
true in case an XML content formatted with this formatter should be included in the
online full text search.
true in case an XML content formatted with this formatter should be included in the
online full text searchpublic boolean isTypeFormatter()
true in case this formatter is based on type information.
true in case this formatter is based on type information
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||