Class RtfParagraphKeepTogether
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.RtfParagraphKeepTogether
Models the keep together attributes of paragraphs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intconstant for close paragraphstatic final intconstant for unset statusstatic final intconstant for open paragraphFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer -
Constructor Summary
ConstructorsConstructorDescriptionRtfParagraphKeepTogether(IRtfParagraphContainer parent, Writer w) RtfParagraphKeepTogether -
Method Summary
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toStringMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
STATUS_NULL
public static final int STATUS_NULLconstant for unset status- See Also:
-
STATUS_OPEN_PARAGRAPH
public static final int STATUS_OPEN_PARAGRAPHconstant for open paragraph- See Also:
-
STATUS_CLOSE_PARAGRAPH
public static final int STATUS_CLOSE_PARAGRAPHconstant for close paragraph- See Also:
-
status
private int status
-
-
Constructor Details
-
RtfParagraphKeepTogether
RtfParagraphKeepTogether(IRtfParagraphContainer parent, Writer w) throws IOException RtfParagraphKeepTogether- Throws:
IOException
-
-
Method Details
-
writeRtfContent
Write the content- Overrides:
writeRtfContentin classRtfContainer- Throws:
IOException- for I/O problems
-
setStatus
public void setStatus(int status) set the status- Parameters:
status- the status to be set
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classRtfContainer- Returns:
- true if this element would generate no "useful" RTF content
-