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
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
FieldsModifier and TypeFieldDescriptionprivate RtfListStyle
private final boolean
private RtfListItem
private Integer
private static Random
private RtfListTable
private Integer
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
ConstructorsConstructorDescriptionRtfList
(RtfContainer parent, Writer w, RtfAttributes attr) Create an RTF list as a child of given container with given attributes -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true, if the list has a parent table.Returns the Id of the list.Returns the Id of the list template.Get list styleClose current list item and start a new onevoid
Change list styleMethods 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 Details
-
item
-
listTable
-
hasTableParent
private final boolean hasTableParent -
defaultListStyle
-
listTemplateId
-
listId
-
listIdGenerator
-
-
Constructor Details
-
RtfList
RtfList(RtfContainer parent, Writer w, RtfAttributes attr) throws IOException Create an RTF list as a child of given container with given attributes- Throws:
IOException
-
-
Method Details
-
newListItem
Close current list item and start a new one- Returns:
- new RtfListItem
- Throws:
IOException
- for I/O problems
-
getListId
Returns the Id of the list.- Returns:
- Id of the list
-
getListTemplateId
Returns the Id of the list template.- Returns:
- Id of the list template
-
setRtfListStyle
Change list style- Parameters:
ls
- ListStyle to set
-
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
-