org.jfor.jfor.rtflib.rtfdoc
Class RtfListItem

java.lang.Object
  extended byorg.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended byorg.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended byorg.jfor.jfor.rtflib.rtfdoc.RtfListItem
All Implemented Interfaces:
IRtfParagraphContainer

public class RtfListItem
extends RtfContainer
implements IRtfParagraphContainer

Model of an RTF list item, which can contain RTF paragraphs

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
m_attrib, m_parent, m_writer
 
Constructor Summary
(package private) RtfListItem(RtfList parent, java.io.Writer w)
          Create an RTF list item as a child of given container with default attributes
(package private) RtfListItem(RtfList parent, java.io.Writer w, RtfAttributes attr)
          Create an RTF list item as a child of given container with given attributes
 
Method Summary
 RtfParagraph newParagraph()
          close current paragraph if any and start a new one with default attributes
 RtfParagraph newParagraph(RtfAttributes attrs)
          close current paragraph if any and start a new one
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtfListItem

RtfListItem(RtfList parent,
            java.io.Writer w)
      throws java.io.IOException
Create an RTF list item as a child of given container with default attributes


RtfListItem

RtfListItem(RtfList parent,
            java.io.Writer w,
            RtfAttributes attr)
      throws java.io.IOException
Create an RTF list item as a child of given container with given attributes

Method Detail

newParagraph

public RtfParagraph newParagraph(RtfAttributes attrs)
                          throws java.io.IOException
close current paragraph if any and start a new one

Specified by:
newParagraph in interface IRtfParagraphContainer
Throws:
java.io.IOException

newParagraph

public RtfParagraph newParagraph()
                          throws java.io.IOException
close current paragraph if any and start a new one with default attributes

Specified by:
newParagraph in interface IRtfParagraphContainer
Throws:
java.io.IOException