Class RtfList
- 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.RtfList
-
public class RtfList extends RtfContainer
Model of an RTF list, which can contain RTF list items.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Christopher Scott (scottc@westinghouse.com), and Peter Herweg (pherweg@web.de).
-
-
Field Summary
Fields Modifier and Type Field Description private RtfListStyle
defaultListStyle
private boolean
hasTableParent
private RtfListItem
item
private java.lang.Integer
listId
private static java.util.Random
listIdGenerator
private RtfListTable
listTable
private java.lang.Integer
listTemplateId
-
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
-
Constructor Summary
Constructors Constructor Description RtfList(RtfContainer parent, java.io.Writer w, RtfAttributes attr)
Create an RTF list as a child of given container with given attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getHasTableParent()
Returns true, if the list has a parent table.java.lang.Integer
getListId()
Returns the Id of the list.java.lang.Integer
getListTemplateId()
Returns the Id of the list template.RtfListStyle
getRtfListStyle()
Get list styleRtfListItem
newListItem()
Close current list item and start a new onevoid
setRtfListStyle(RtfListStyle ls)
Change list style-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
-
-
-
Field Detail
-
item
private RtfListItem item
-
listTable
private RtfListTable listTable
-
hasTableParent
private final boolean hasTableParent
-
defaultListStyle
private RtfListStyle defaultListStyle
-
listTemplateId
private java.lang.Integer listTemplateId
-
listId
private java.lang.Integer listId
-
listIdGenerator
private static java.util.Random listIdGenerator
-
-
Constructor Detail
-
RtfList
RtfList(RtfContainer parent, java.io.Writer w, RtfAttributes attr) throws java.io.IOException
Create an RTF list as a child of given container with given attributes- Throws:
java.io.IOException
-
-
Method Detail
-
newListItem
public RtfListItem newListItem() throws java.io.IOException
Close current list item and start a new one- Returns:
- new RtfListItem
- Throws:
java.io.IOException
- for I/O problems
-
getListId
public java.lang.Integer getListId()
Returns the Id of the list.- Returns:
- Id of the list
-
getListTemplateId
public java.lang.Integer getListTemplateId()
Returns the Id of the list template.- Returns:
- Id of the list template
-
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
-
getHasTableParent
public boolean getHasTableParent()
Returns true, if the list has a parent table.- Returns:
- true, if the list has a parent table
-
-