Class WritableElement

  • All Implemented Interfaces:
    Writable

    public class WritableElement
    extends Object
    implements Writable
    A WritableElement holds all elements that need to be added to a Document. It's used at least in the HTML processing of the XMLWorker.
    Author:
    redlab_b
    • Constructor Detail

      • WritableElement

        public WritableElement()
      • WritableElement

        public WritableElement​(Element e)
        Construct a WritableElement
        Parameters:
        e - an element to add to the list of elements.
    • Method Detail

      • add

        public void add​(Element e)
        Add a single element to the list of elements.
        Parameters:
        e - an Element
      • addAll

        public void addAll​(List<Element> l)
        add all elements to the list. (Note do not submit 1 com.itextpdf.text.Paragraph this extends from ArrayList, and just the Content will be added....)
        Parameters:
        l - the list to add.
      • elements

        public List<Element> elements()
        Returns the list of elements.
        Returns:
        the list of elements.