Class CmsContainerpageController.ReferenceCheckVisitor
java.lang.Object
org.opencms.ade.containerpage.client.CmsContainerpageController.ReferenceCheckVisitor
- All Implemented Interfaces:
CmsContainerpageController.I_PageContentVisitor
- Enclosing class:
- CmsContainerpageController
public static class CmsContainerpageController.ReferenceCheckVisitor
extends Object
implements CmsContainerpageController.I_PageContentVisitor
This visitor implementation checks whether there are other elements in the current page
which correspond to the same VFS resource as a given container element.
-
Constructor Summary
ConstructorDescriptionReferenceCheckVisitor
(CmsContainerPageElementPanel elementPanel) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
beginContainer
(String name, org.opencms.ade.containerpage.shared.CmsContainer container) This method is called before a container is processed.void
This method is called after all elements of a container have been processed.void
This method is called for each element of a container.boolean
Checks if other references have been found.
-
Constructor Details
-
ReferenceCheckVisitor
Creates a new instance.- Parameters:
elementPanel
- the element for which we want to check if there are other references
-
-
Method Details
-
endContainer
Description copied from interface:CmsContainerpageController.I_PageContentVisitor
This method is called after all elements of a container have been processed.- Specified by:
endContainer
in interfaceCmsContainerpageController.I_PageContentVisitor
- See Also:
-
handleElement
Description copied from interface:CmsContainerpageController.I_PageContentVisitor
This method is called for each element of a container.- Specified by:
handleElement
in interfaceCmsContainerpageController.I_PageContentVisitor
- Parameters:
element
- the container element- See Also:
-
hasReferences
Checks if other references have been found.- Returns:
- true if other references have been found