public class CmsJspTagContentLoop extends javax.servlet.jsp.tagext.TagSupport implements I_CmsXmlContentContainer
| 构造器和说明 |
|---|
CmsJspTagContentLoop()
Empty constructor, required for JSP tags.
|
CmsJspTagContentLoop(I_CmsXmlContentContainer container,
java.lang.String element)
Constructor used when using
contentloop from scriptlet code. |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
已过时。
|
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.
|
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 contentpublic int doAfterBody()
doAfterBody 在接口中 javax.servlet.jsp.tagext.IterationTagdoAfterBody 在类中 javax.servlet.jsp.tagext.TagSupportTagSupport.doAfterBody()public int doEndTag()
doEndTag 在接口中 javax.servlet.jsp.tagext.TagdoEndTag 在类中 javax.servlet.jsp.tagext.TagSupportTag.doEndTag()public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag 在接口中 javax.servlet.jsp.tagext.TagdoStartTag 在类中 javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionTag.doStartTag()public java.lang.String getCollectorName()
I_CmsResourceContainergetCollectorName 在接口中 I_CmsResourceContainerI_CmsResourceContainer.getCollectorName()public java.lang.String getCollectorParam()
I_CmsResourceContainergetCollectorParam 在接口中 I_CmsResourceContainerI_CmsResourceContainer.getCollectorParam()public java.util.List<CmsResource> getCollectorResult()
I_CmsResourceContainerCmsResource).getCollectorResult 在接口中 I_CmsResourceContainerI_CmsResourceContainer.getCollectorResult()public java.lang.String getElement()
public CmsResource getResource()
I_CmsResourceContainergetResource 在接口中 I_CmsResourceContainerI_CmsResourceContainer.getResource()public java.lang.String getResourceName()
I_CmsResourceContainergetResourceName 在接口中 I_CmsResourceContainerI_CmsResourceContainer.getResourceName()public I_CmsXmlDocument getXmlDocument()
I_CmsXmlContentContainergetXmlDocument 在接口中 I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocument()public java.lang.String getXmlDocumentElement()
I_CmsXmlContentContainergetXmlDocumentElement 在接口中 I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocumentElement()public java.util.Locale getXmlDocumentLocale()
I_CmsXmlContentContainergetXmlDocumentLocale 在接口中 I_CmsXmlContentContainerI_CmsXmlContentContainer.getXmlDocumentLocale()@Deprecated public boolean hasMoreContent()
I_CmsResourceContainerCalling this method will insert "direct edit" HTML to the output page (if required).
hasMoreContent 在接口中 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 在接口中 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 在接口中 I_CmsResourceContainertrue if this container is used as a resource preloaderI_CmsResourceContainer.isPreloader()public void release()
release 在接口中 javax.servlet.jsp.tagext.Tagrelease 在类中 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