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.IterationTag
doAfterBody
在类中 javax.servlet.jsp.tagext.TagSupport
TagSupport.doAfterBody()
public int doEndTag()
doEndTag
在接口中 javax.servlet.jsp.tagext.Tag
doEndTag
在类中 javax.servlet.jsp.tagext.TagSupport
Tag.doEndTag()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
在接口中 javax.servlet.jsp.tagext.Tag
doStartTag
在类中 javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
Tag.doStartTag()
public java.lang.String getCollectorName()
I_CmsResourceContainer
getCollectorName
在接口中 I_CmsResourceContainer
I_CmsResourceContainer.getCollectorName()
public java.lang.String getCollectorParam()
I_CmsResourceContainer
getCollectorParam
在接口中 I_CmsResourceContainer
I_CmsResourceContainer.getCollectorParam()
public java.util.List<CmsResource> getCollectorResult()
I_CmsResourceContainer
CmsResource
).getCollectorResult
在接口中 I_CmsResourceContainer
I_CmsResourceContainer.getCollectorResult()
public java.lang.String getElement()
public CmsResource getResource()
I_CmsResourceContainer
getResource
在接口中 I_CmsResourceContainer
I_CmsResourceContainer.getResource()
public java.lang.String getResourceName()
I_CmsResourceContainer
getResourceName
在接口中 I_CmsResourceContainer
I_CmsResourceContainer.getResourceName()
public I_CmsXmlDocument getXmlDocument()
I_CmsXmlContentContainer
getXmlDocument
在接口中 I_CmsXmlContentContainer
I_CmsXmlContentContainer.getXmlDocument()
public java.lang.String getXmlDocumentElement()
I_CmsXmlContentContainer
getXmlDocumentElement
在接口中 I_CmsXmlContentContainer
I_CmsXmlContentContainer.getXmlDocumentElement()
public java.util.Locale getXmlDocumentLocale()
I_CmsXmlContentContainer
getXmlDocumentLocale
在接口中 I_CmsXmlContentContainer
I_CmsXmlContentContainer.getXmlDocumentLocale()
@Deprecated public boolean hasMoreContent()
I_CmsResourceContainer
Calling this method will insert "direct edit" HTML to the output page (if required).
hasMoreContent
在接口中 I_CmsResourceContainer
true
if more resources are to be iteratedI_CmsResourceContainer.hasMoreContent()
public boolean hasMoreResources()
I_CmsResourceContainer
Calling this method will insert "direct edit" HTML to the output page (if required).
hasMoreResources
在接口中 I_CmsResourceContainer
true
if more resources are to be iteratedI_CmsResourceContainer.hasMoreResources()
public boolean isPreloader()
I_CmsResourceContainer
true
if this container is used as a resource preloader.A resource preloader is used to load resources without looping through it.
isPreloader
在接口中 I_CmsResourceContainer
true
if this container is used as a resource preloaderI_CmsResourceContainer.isPreloader()
public void release()
release
在接口中 javax.servlet.jsp.tagext.Tag
release
在类中 javax.servlet.jsp.tagext.TagSupport
Tag.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