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 RtfListStyleprivate final booleanprivate RtfListItemprivate Integerprivate static Randomprivate RtfListTableprivate IntegerFields inherited from class 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 TypeMethodDescriptionbooleanReturns 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 onevoidChange list styleMethods inherited from class RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentMethods inherited from class 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
-
getListTemplateId
Returns the Id of the list template.- Returns:
- Id of the list template
-
setRtfListStyle
-
getRtfListStyle
-
getHasTableParent
public boolean getHasTableParent()Returns true, if the list has a parent table.- Returns:
- true, if the list has a parent table
-