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
Modifier and TypeFieldDescriptionstatic final String
constant for a liststatic final String
constant for list following characterstatic final String
constant for list font typestatic final String
constant for list IDstatic final String
constant for list indentationstatic final String
constant for a list justificationstatic final String
constant for a list levelstatic final String
constant for list namestatic final String
constant for list number positioningstatic final String
constant for list numberstatic final String
constant for a list number typestatic final String
constant for list overridestatic final String
constant for list override countstatic final String
constant for list override tablestatic final String
constant for list spacestatic final String
constant for list start atstatic final String
constant for a list tablestatic final String[]
String array of list table attributesstatic final String
constant for a list template idstatic final String
constant for list text formatFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
ConstructorDescriptionRtfListTable
(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 TypeMethodDescriptionint
Add Listint
Add list styleboolean
isEmpty()
Since this has no text content we have to overwrite isEmpty to print the tablevoid
Write the contentMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, okToWriteRtf, setChildren, setOptions, toString
Methods 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:
writeRtfContent
in 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:
isEmpty
in classRtfContainer
- Returns:
- false (always)
-
addRtfListStyle
Add list style- Parameters:
ls
- ListStyle to set- Returns:
- number of styles after adding
-