Class PageElement

    • Constructor Detail

      • PageElement

        public PageElement​(java.lang.String name)
        Constructor
        Parameters:
        name - Name of element.
      • PageElement

        public PageElement​(java.lang.String name,
                           java.lang.String uri)
        Constructor
        Parameters:
        name - Name of element.
        uri - Element URI.
      • PageElement

        public PageElement​(nu.xom.Element element)
        Constructor
        Parameters:
        element - Element.
    • Method Detail

      • delete

        public final void delete​(DocIO resIO)
        Description copied from class: VisualElement
        Delete the element and sub-elements.
        Specified by:
        delete in class VisualElement
        Parameters:
        resIO - Resource handler to remove resources on delete.
      • getTitle

        public java.util.Optional<java.lang.String> getTitle()
        Returns:
        Maybe Page title.
      • insertVisual

        public void insertVisual​(VisualElement el)
        Insert a Visual element.
        Parameters:
        el - element.
      • setTitle

        public java.util.Optional<java.lang.String> setTitle​(java.lang.String name)
        Parameters:
        name - Title.
        Returns:
        Maybe set title.
      • setIndex

        protected void setIndex​(java.lang.Integer ind)
        Set the page index. This should be done before return from the Document to a user.
        Parameters:
        ind - Index.
      • getIndex

        public java.lang.Integer getIndex()
        Get the page index. This should be set before use in the engine.
        Returns:
        Index.