Class RtfListTable
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.RtfListTable
RtfListTable: used to make the list table in the header section of the RtfFile. This is the method that Word uses to make lists in RTF and the way most RTF readers, esp. Adobe FrameMaker read lists from RTF.
This work was authored by Christopher Scott (scottc@westinghouse.com).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconstant for a liststatic final Stringconstant for list following characterstatic final Stringconstant for list font typestatic final Stringconstant for list IDstatic final Stringconstant for list indentationstatic final Stringconstant for a list justificationstatic final Stringconstant for a list levelstatic final Stringconstant for list namestatic final Stringconstant for list number positioningstatic final Stringconstant for list numberstatic final Stringconstant for a list number typestatic final Stringconstant for list overridestatic final Stringconstant for list override countstatic final Stringconstant for list override tablestatic final Stringconstant for list spacestatic final Stringconstant for list start atstatic final Stringconstant for a list tablestatic final String[]String array of list table attributesstatic final Stringconstant for a list template idstatic final Stringconstant for list text formatprivate LinkedListprivate LinkedListFields inherited from class RtfElement
attrib, parent, writer -
Constructor Summary
ConstructorsConstructorDescriptionRtfListTable(RtfContainer parent, Writer w, Integer num, RtfAttributes attrs) RtfListTable Constructor: sets the number of the list, and allocates for the RtfAttributes -
Method Summary
Modifier and TypeMethodDescriptionintAdd ListintAdd list stylebooleanisEmpty()Since this has no text content we have to overwrite isEmpty to print the tableprivate voidwriteListTableEntry(RtfList list) voidWrite the contentMethods inherited from class RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toStringMethods inherited from class RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
lists
-
styles
-
LIST_TABLE
-
LIST
-
LIST_TEMPLATE_ID
-
LIST_LEVEL
-
LIST_NUMBER_TYPE
-
LIST_JUSTIFICATION
-
LIST_FOLLOWING_CHAR
-
LIST_START_AT
-
LIST_SPACE
-
LIST_INDENT
-
LIST_TEXT_FORM
-
LIST_NUM_POSITION
-
LIST_NAME
-
LIST_ID
-
LIST_FONT_TYPE
-
LIST_OVR_TABLE
-
LIST_OVR
-
LIST_OVR_COUNT
-
LIST_NUMBER
-
LIST_TABLE_ATTR
String array of list table attributes
-
-
Constructor Details
-
RtfListTable
public RtfListTable(RtfContainer parent, Writer w, Integer num, RtfAttributes attrs) throws IOException RtfListTable Constructor: sets the number of the list, and allocates for the RtfAttributes- Parameters:
parent- RtfContainer holding this RtfListTablew- Writernum- number of the list in the documentattrs- attributes of new RtfListTable- Throws:
IOException- for I/O problems
-
-
Method Details
-
addList
Add List- Parameters:
list- RtfList to add- Returns:
- number of lists in the table after adding
-
writeRtfContent
Write the content- Overrides:
writeRtfContentin classRtfContainer- Throws:
IOException- for I/O problems
-
isEmpty
public boolean isEmpty()Since this has no text content we have to overwrite isEmpty to print the table- Overrides:
isEmptyin classRtfContainer- Returns:
- false (always)
-
writeListTableEntry
- Throws:
IOException
-
addRtfListStyle
Add list style- Parameters:
ls- ListStyle to set- Returns:
- number of styles after adding
-