|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.opencms.jsp.CmsJspTagContainer
public class CmsJspTagContainer
Provides access to the page container elements.
| Nested Class Summary | |
|---|---|
static class |
CmsJspTagContainer.JsonContainer
Json property name constants for containers. |
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_MAX_ELEMENTS
Default number of max elements in the container in case no value has been set. |
static java.lang.String |
DUMMY_ELEMENT
HTML used for invisible dummy elements. |
static java.lang.String |
KEY_CONTAINER_DATA
Key used to write container data into the javascript window object. |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
CmsJspTagContainer()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
Internal action method. |
protected static java.lang.String |
getContainerDataTag(CmsContainerBean container,
java.lang.String widthStr,
boolean isDetailView)
Creates a new data tag for the given container. |
java.lang.String |
getDetailview()
Returns the boolean value if this container is target of detail views. |
java.lang.String |
getMaxElements()
Returns the maxElements attribute value. |
java.lang.String |
getName()
Returns the name attribute value. |
java.lang.String |
getTag()
Returns the tag attribute. |
java.lang.String |
getTagClass()
Returns the tag class attribute. |
protected static java.lang.String |
getTagClose(java.lang.String tagName)
Creates the closing tag for the container. |
protected static java.lang.String |
getTagOpen(java.lang.String tagName,
java.lang.String containerName,
java.lang.String tagClass)
Creates the opening tag for the container assigning the appropriate id and class attributes. |
java.lang.String |
getType()
Returns the type attribute value. |
java.lang.String |
getWidth()
Returns the container width as a string. |
protected void |
printElementWrapperTagEnd(boolean isOnline,
boolean isGroupcontainer)
Prints the closing tag for an element wrapper if in online mode. |
protected void |
printElementWrapperTagStart(boolean isOnline,
CmsObject cms,
CmsContainerElementBean elementBean,
boolean isGroupContainer)
Prints the opening element wrapper tag for the container page editor if we are in Offline mode. |
void |
release()
|
void |
setDetailview(java.lang.String detailView)
Sets if the current container is target of detail views. |
void |
setMaxElements(java.lang.String maxElements)
Sets the maxElements attribute value. |
void |
setName(java.lang.String name)
Sets the name attribute value. |
void |
setTag(java.lang.String tag)
Sets the tag attribute. |
void |
setTagClass(java.lang.String tagClass)
Sets the tag class attribute. |
void |
setType(java.lang.String type)
Sets the type attribute value. |
void |
setWidth(java.lang.String width)
Sets the container width as a string. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_MAX_ELEMENTS
public static final java.lang.String DUMMY_ELEMENT
public static final java.lang.String KEY_CONTAINER_DATA
| Constructor Detail |
|---|
public CmsJspTagContainer()
| Method Detail |
|---|
protected static java.lang.String getContainerDataTag(CmsContainerBean container,
java.lang.String widthStr,
boolean isDetailView)
throws JSONException
container - the container to get the data tag forwidthStr - the width of the container as a stringisDetailView - true if this container is currently being used for the detail view
JSONException - if there is a problem with JSON manipulationprotected static java.lang.String getTagClose(java.lang.String tagName)
tagName - the tag name
protected static java.lang.String getTagOpen(java.lang.String tagName,
java.lang.String containerName,
java.lang.String tagClass)
tagName - the tag namecontainerName - the container name used as id attribute valuetagClass - the tag class attribute value
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - in case something goes wrongTag.doStartTag()public java.lang.String getDetailview()
true or falsepublic java.lang.String getMaxElements()
public java.lang.String getName()
public java.lang.String getTag()
public java.lang.String getTagClass()
public java.lang.String getType()
If the container type has not been set, the name is substituted as type.
public java.lang.String getWidth()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportTag.release()public void setDetailview(java.lang.String detailView)
detailView - true or falsepublic void setMaxElements(java.lang.String maxElements)
maxElements - the maxElements value to setpublic void setName(java.lang.String name)
name - the name value to setpublic void setTag(java.lang.String tag)
tag - the createTag to setpublic void setTagClass(java.lang.String tagClass)
tagClass - the tag class attribute to setpublic void setType(java.lang.String type)
type - the type value to setpublic void setWidth(java.lang.String width)
width - the container width as a string
protected void printElementWrapperTagEnd(boolean isOnline,
boolean isGroupcontainer)
throws java.io.IOException
isOnline - if true, we are onlineisGroupcontainer - true if element is a group-container
java.io.IOException - if the output fails
protected void printElementWrapperTagStart(boolean isOnline,
CmsObject cms,
CmsContainerElementBean elementBean,
boolean isGroupContainer)
throws java.lang.Exception
isOnline - true if we are in Online modecms - the Cms contextelementBean - the element beanisGroupContainer - true if the element is a group-container
java.lang.Exception - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||