Class RtfListTable


public class RtfListTable extends RtfContainer

RtfListTable: used to make the list table in the header section of the RtfFile. This is the method that Word uses to make lists in RTF and the way most RTF readers, esp. Adobe FrameMaker read lists from RTF.

This work was authored by Christopher Scott (scottc@westinghouse.com).

  • Field Details

  • Constructor Details

    • RtfListTable

      public RtfListTable(RtfContainer parent, Writer w, Integer num, RtfAttributes attrs) throws IOException
      RtfListTable Constructor: sets the number of the list, and allocates for the RtfAttributes
      Parameters:
      parent - RtfContainer holding this RtfListTable
      w - Writer
      num - number of the list in the document
      attrs - attributes of new RtfListTable
      Throws:
      IOException - for I/O problems
  • Method Details

    • addList

      public int addList(RtfList list)
      Add List
      Parameters:
      list - RtfList to add
      Returns:
      number of lists in the table after adding
    • writeRtfContent

      public void writeRtfContent() throws IOException
      Write the content
      Overrides:
      writeRtfContent in class RtfContainer
      Throws:
      IOException - for I/O problems
    • isEmpty

      public boolean isEmpty()
      Since this has no text content we have to overwrite isEmpty to print the table
      Overrides:
      isEmpty in class RtfContainer
      Returns:
      false (always)
    • addRtfListStyle

      public int addRtfListStyle(RtfListStyle ls)
      Add list style
      Parameters:
      ls - ListStyle to set
      Returns:
      number of styles after adding