Interface ElementHolder

    • Method Detail

      • getElements

        @Document(inheritLanguage=true)
        Element[] getElements()
        Returns the elements contained by this element holder.
        Returns:
        the elements contained by this element holder.
      • setElements

        void setElements​(Element[] elements)
        Sets the elements for this element holder.
        Parameters:
        elements - the elements to set.
      • getElementHolderElements

        Element[] getElementHolderElements()
        Return the all of the elements contained by this ElementHolder This is the raw list of elements and no extra filtering or processing is done.
        Returns:
        all the elements inside the ElementHolder
      • setElementHolderElements

        @Deprecated
        void setElementHolderElements​(Element[] elements)
        Deprecated.
        Update the elements contained by this ElementHolder, not including the model elements.
      • setModelElements

        @Deprecated
        void setModelElements​(Element[] elements)
        Deprecated.
        Update the model elements contained by this ElementHolder.
      • getModelElements

        @Deprecated
        nl.gx.webmanager.cms.pagemodel.PageModelElement[] getModelElements()
        Deprecated.
        Return the model elements contained by this ElementHolder.
        Returns:
        the model elements contained by this ElementHolder
      • isAdditionalElementsAllowed

        @Deprecated
        boolean isAdditionalElementsAllowed()
        Deprecated.
        Return whether adding of additional elements is allowed.
        Returns:
        whether adding of additional elements is allowed
      • getFBOMap

        Map<String,​Element> getFBOMap()
        Returns the elements as map. This is used for spring binding. For example: binds the element by id. is incorrect since the (amount and order of) elements that are returned by this method may be changed between the get and submit.
        Returns:
        Hashmap of all elements where they is the element id (as String) and the value the element.
      • getElementsFBOMap

        @Deprecated
        Map<String,​Element> getElementsFBOMap()
        Deprecated.
        Returns the elements as Hash map. This is used for spring binding. For example: binds the element by id. is incorrect since the (amount and order of) elements that are returned by this method may be changed between the get and submit.
        Returns:
        Hashmap of all elements where they is the element id (as String) and the value the element.
      • getModelElementsFBOMap

        @Deprecated
        Map<String,​nl.gx.webmanager.cms.pagemodel.PageModelElement> getModelElementsFBOMap()
        Deprecated.
        Returns the elements as Hash map. This is used for spring binding. For example: binds the element by id. is incorrect since the (amount and order of) elements that are returned by this method may be changed between the get and submit.
        Returns:
        Hashmap of all elements where they is the element id (as String) and the value the element.
      • getRelatedLink

        RelatedLink getRelatedLink​(String code)
        Returns RelatedLink for a particular code.
        Parameters:
        code -
        Returns:
        RelatedLink for code.
      • addRelatedLink

        void addRelatedLink​(RelatedLink relatedLink)
        Adds related link to this ElementHolder.
        Parameters:
        relatedLink - link being added to this ElementHolder
        Since:
        9.12.0
      • removeRelatedLinks

        void removeRelatedLinks()
        Removed all related links from this element holder. Since links are stored by parent/child relations, this actually removed the HTMLObjects associated with the links.
        Since:
        10.29.3
      • getWebsite

        Website getWebsite()
        Returns website this ElementHolder is on.
        Returns:
        website.
      • setWebsite

        void setWebsite​(Website website)
        Sets the website.
        Parameters:
        website - Website to set.
      • createRichTextElements

        @Deprecated
        void createRichTextElements()
        Deprecated.
        Make sure between every content element is a richText element for wysiwyg editting.
      • getLastElement

        Element getLastElement()
        Returns the last element that is currently assigned to the ElementHolder object, or null if no element is assigned to the ElementHolder.
        Returns:
        the last element that is currently assigned to the ElementHolder object, or null if no element is assigned to the ElementHolder
      • insertLastElementAtCursor

        @Deprecated
        void insertLastElementAtCursor()
        Deprecated.
        Moves the new ( last ) element to the cursor position.
      • getHeadings

        List<Heading> getHeadings()
        Returns all headings in the elementholder