org.jfor.jfor.rtflib.rtfdoc
Class RtfListItem

java.lang.Object
  extended by org.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended by org.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended by org.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
RtfListItem(RtfList parent, java.io.Writer w)
          Create an RTF list item as a child of given container with default attributes
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

Throws:
java.io.IOException

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

Throws:
java.io.IOException
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