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 formatFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.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 tablevoidWrite the contentMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, okToWriteRtf, setChildren, setOptions, toStringMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
LIST_TABLE
constant for a list table- See Also:
-
LIST
constant for a list- See Also:
-
LIST_TEMPLATE_ID
constant for a list template id- See Also:
-
LIST_LEVEL
constant for a list level- See Also:
-
LIST_NUMBER_TYPE
constant for a list number type- See Also:
-
LIST_JUSTIFICATION
constant for a list justification- See Also:
-
LIST_FOLLOWING_CHAR
constant for list following character- See Also:
-
LIST_START_AT
constant for list start at- See Also:
-
LIST_SPACE
constant for list space- See Also:
-
LIST_INDENT
constant for list indentation- See Also:
-
LIST_TEXT_FORM
constant for list text format- See Also:
-
LIST_NUM_POSITION
constant for list number positioning- See Also:
-
LIST_NAME
constant for list name- See Also:
-
LIST_ID
constant for list ID- See Also:
-
LIST_FONT_TYPE
constant for list font type- See Also:
-
LIST_OVR_TABLE
constant for list override table- See Also:
-
LIST_OVR
constant for list override- See Also:
-
LIST_OVR_COUNT
constant for list override count- See Also:
-
LIST_NUMBER
constant for list number- See Also:
-
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)
-
addRtfListStyle
Add list style- Parameters:
ls- ListStyle to set- Returns:
- number of styles after adding
-