Class RtfListTable

  • All Implemented Interfaces:
    RtfBasicElement, RtfExtendedElement, com.lowagie.text.RtfElementInterface

    public class RtfListTable
    extends RtfElement
    implements RtfExtendedElement
    The RtfListTable manages all RtfList objects and list override table in one RtfDocument.
    Version:
    $Id: RtfListTable.java 3580 2008-08-06 15:52:00Z howard_s $
    • Field Detail

      • LIST_TABLE

        private static final byte[] LIST_TABLE
        Constant for the list table
      • LIST_OVERRIDE_TABLE

        private static final byte[] LIST_OVERRIDE_TABLE
        Constant for the list override table
      • LIST_OVERRIDE

        private static final byte[] LIST_OVERRIDE
        Constant for the list override
      • LIST_OVERRIDE_COUNT

        private static final byte[] LIST_OVERRIDE_COUNT
        Constant for the list override count
      • lists

        private final java.util.List<RtfList> lists
        The RtfList lists managed by this RtfListTable
      • picturelists

        private final java.util.List<RtfPictureList> picturelists
        The RtfPictureList lists managed by this RtfListTable
    • Constructor Detail

      • RtfListTable

        public RtfListTable​(RtfDocument doc)
        Constructs a RtfListTable for a RtfDocument
        Parameters:
        doc - The RtfDocument this RtfListTable belongs to
    • Method Detail

      • writeContent

        public void writeContent​(java.io.OutputStream out)
                          throws java.io.IOException
        unused
        Specified by:
        writeContent in interface RtfBasicElement
        Specified by:
        writeContent in class RtfElement
        Parameters:
        out - The OutputStream to write the content to
        Throws:
        java.io.IOException
      • writeDefinition

        public void writeDefinition​(java.io.OutputStream result)
                             throws java.io.IOException
        Writes the list and list override tables.
        Specified by:
        writeDefinition in interface RtfExtendedElement
        Parameters:
        result - The OutputStream to write the element definition to
        Throws:
        java.io.IOException
      • getListNumber

        public int getListNumber​(RtfList list)
        Gets the id of the specified RtfList. If the RtfList is not yet in the list of RtfList, then it is added.
        Parameters:
        list - The RtfList for which to get the id.
        Returns:
        The id of the RtfList.
      • freeListNumber

        public void freeListNumber​(RtfList list)
        Remove a RtfList from the list of RtfList
        Parameters:
        list - The RtfList to remove.