Class RtfPageNumber
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.RtfPageNumber
Page number container.
This work was authored by Christopher Scott (scottc@westinghouse.com).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconstant for fieldstatic final Stringconstant for field on pagestatic final Stringconstant for field resultFields inherited from class RtfElement
attrib, parent, writer -
Constructor Summary
ConstructorsConstructorDescriptionRtfPageNumber(IRtfPageNumberContainer parent, Writer w) Create an RTF paragraph as a child of given container with default attributesRtfPageNumber(RtfContainer parent, Writer w, RtfAttributes attrs) Create an RTF page number as a child of given container with given attributesRtfPageNumber(RtfParagraph parent, Writer w) Create an RTF page number as a child of given paragraph, copying the paragraph attributes -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()protected voidWrite our attributes and 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
-
RTF_FIELD
-
RTF_FIELD_PAGE
-
RTF_FIELD_RESULT
-
-
Constructor Details
-
RtfPageNumber
RtfPageNumber(IRtfPageNumberContainer parent, Writer w) throws IOException Create an RTF paragraph as a child of given container with default attributes- Throws:
IOException
-
RtfPageNumber
RtfPageNumber(RtfContainer parent, Writer w, RtfAttributes attrs) throws IOException Create an RTF page number as a child of given container with given attributes- Throws:
IOException
-
RtfPageNumber
RtfPageNumber(RtfParagraph parent, Writer w) throws IOException Create an RTF page number as a child of given paragraph, copying the paragraph attributes- Throws:
IOException
-
-
Method Details
-
writeRtfContent
Write our attributes and content- Overrides:
writeRtfContentin classRtfContainer- Throws:
IOException- for I/O problems
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classRtfContainer- Returns:
- true if this element would generate no "useful" RTF content
-