|
||||||||
| 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.CmsJspTagContentLoop
public class CmsJspTagContentLoop
Used to loop through the element values of an XML content item.
| Field Summary |
|---|
| 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 | |
|---|---|
CmsJspTagContentLoop()
Empty constructor, required for JSP tags. |
|
CmsJspTagContentLoop(I_CmsXmlContentContainer container,
java.lang.String element)
Constructor used when using contentloop from scriptlet code. |
|
| Method Summary | |
|---|---|
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getCollectorName()
Returns the name of the currently used resource collector. |
java.lang.String |
getCollectorParam()
Returns the parameters of the currently used resource collector. |
java.util.List<CmsResource> |
getCollectorResult()
Returns the list of all currently loaded resources (instances of ). |
java.lang.String |
getElement()
Returns the name of the content node element to show. |
CmsResource |
getResource()
Returns the currently loaded resource. |
java.lang.String |
getResourceName()
Returns the resource name in the VFS for the currently loaded resource. |
I_CmsXmlDocument |
getXmlDocument()
Returns the currently loaded OpenCms XML content document. |
java.lang.String |
getXmlDocumentElement()
Returns the currently selected element name in the loaded XML content document. |
java.util.Locale |
getXmlDocumentLocale()
Returns the currently selected locale used for acessing the content in the loaded XML content document. |
boolean |
hasMoreContent()
Deprecated. |
boolean |
hasMoreResources()
Resource iteration method to be used by JSP scriptlet code. |
protected void |
init(I_CmsXmlContentContainer container)
Initializes this content loop tag. |
boolean |
isPreloader()
Returns true if this container is used as a resource preloader. |
void |
release()
|
void |
setElement(java.lang.String element)
Sets the name of the content node element to show. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
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 |
| Constructor Detail |
|---|
public CmsJspTagContentLoop()
public CmsJspTagContentLoop(I_CmsXmlContentContainer container,
java.lang.String element)
contentloop from scriptlet code.
container - the parent content container that provides the content element to loopelement - the element to loop in the content| Method Detail |
|---|
public int doAfterBody()
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.TagSupportTagSupport.doAfterBody()public int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportTag.doEndTag()
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.JspExceptionTag.doStartTag()public java.lang.String getCollectorName()
I_CmsResourceContainer
getCollectorName in interface I_CmsResourceContainerI_CmsResourceContainer.getCollectorName()public java.lang.String getCollectorParam()
I_CmsResourceContainer
getCollectorParam in interface I_CmsResourceContainerI_CmsResourceContainer.getCollectorParam()public java.util.List<CmsResource> getCollectorResult()
I_CmsResourceContainerCmsResource).
getCollectorResult in interface I_CmsResourceContainerI_CmsResourceContainer.getCollectorResult()public java.lang.String getElement()
public CmsResource getResource()
I_CmsResourceContainer
getResource in interface I_CmsResourceContainerI_CmsResourceContainer.getResource()public java.lang.String getResourceName()
I_CmsResourceContainer
getResourceName in interface I_CmsResourceContainerI_CmsResourceContainer.getResourceName()public I_CmsXmlDocument getXmlDocument()
I_CmsXmlContentContainer
getXmlDocument in interface I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocument()public java.lang.String getXmlDocumentElement()
I_CmsXmlContentContainer
getXmlDocumentElement in interface I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocumentElement()public java.util.Locale getXmlDocumentLocale()
I_CmsXmlContentContainer
getXmlDocumentLocale in interface I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocumentLocale()@Deprecated public boolean hasMoreContent()
I_CmsResourceContainerCalling this method will insert "direct edit" HTML to the output page (if required).
hasMoreContent in interface I_CmsResourceContainertrue if more resources are to be iteratedI_CmsResourceContainer.hasMoreContent()public boolean hasMoreResources()
I_CmsResourceContainerCalling this method will insert "direct edit" HTML to the output page (if required).
hasMoreResources in interface I_CmsResourceContainertrue if more resources are to be iteratedI_CmsResourceContainer.hasMoreResources()public boolean isPreloader()
I_CmsResourceContainertrue if this container is used as a resource preloader.A resource preloader is used to load resources without looping through it.
isPreloader in interface I_CmsResourceContainertrue if this container is used as a resource preloaderI_CmsResourceContainer.isPreloader()public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportTag.release()public void setElement(java.lang.String element)
element - the name of the content node element to showprotected void init(I_CmsXmlContentContainer container)
container - the parent content container that provides the content element to loop
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||