org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfListItem
java.lang.Object
|
+--org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
|
+--org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
|
+--org.apache.fop.render.rtf.rtflib.rtfdoc.RtfListItem
- All Implemented Interfaces:
- IRtfListContainer, IRtfParagraphContainer, IRtfTextrunContainer
- public class RtfListItem
- extends RtfContainer
- implements IRtfTextrunContainer, IRtfListContainer, IRtfParagraphContainer
Model of an RTF list item, which can contain RTF paragraphs
- Author:
- Bertrand Delacretaz bdelacretaz@codeconsult.ch, Andreas Putz a.putz@skynamics.com
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
close, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
- Parameters:
attrs
- attributes of new paragraph- Returns:
- new RtfParagraph
- Throws:
java.io.IOException
- for I/O problems
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
- Returns:
- new RtfParagraph
- Throws:
java.io.IOException
- for I/O problems
getTextrun
public RtfTextrun getTextrun()
throws java.io.IOException
- Specified by:
getTextrun
in interface IRtfTextrunContainer
newList
public RtfList newList(RtfAttributes attrs)
throws java.io.IOException
- Start a new list after closing current paragraph, list and table
- Specified by:
newList
in interface IRtfListContainer
- Parameters:
attrs
- attributes of new RftList object- Returns:
- new RtfList
- Throws:
java.io.IOException
- for I/O problems
writeRtfPrefix
protected void writeRtfPrefix()
throws java.io.IOException
- Overridden to setup the list: start a group with appropriate attributes
- Overrides:
writeRtfPrefix
in class RtfElement
- Throws:
java.io.IOException
- for I/O problems
writeRtfSuffix
protected void writeRtfSuffix()
throws java.io.IOException
- End the list group
- Overrides:
writeRtfSuffix
in class RtfElement
- Throws:
java.io.IOException
- for I/O problems
setRtfListStyle
public void setRtfListStyle(RtfListStyle ls)
- Change list style
- Parameters:
ls
- ListStyle to set
getRtfListStyle
public RtfListStyle getRtfListStyle()
- Get list style
- Returns:
- ListSytle of the List
getParentList
public RtfList getParentList()
- Get the parent list.
- Returns:
- the parent list
getNumber
public int getNumber()
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.