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
-
public class RtfParagraphKeepTogether extends RtfContainer
Models the keep together attributes of paragraphs
-
-
Field Summary
Fields Modifier and Type Field Description private int
status
static int
STATUS_CLOSE_PARAGRAPH
constant for close paragraphstatic int
STATUS_NULL
constant for unset statusstatic int
STATUS_OPEN_PARAGRAPH
constant for open paragraph-
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
-
Constructor Summary
Constructors Constructor Description RtfParagraphKeepTogether(IRtfParagraphContainer parent, java.io.Writer w)
RtfParagraphKeepTogether
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
void
setStatus(int status)
set the statusprotected void
writeRtfContent()
Write the content-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, findChildren, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toString
-
Methods 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 Detail
-
STATUS_NULL
public static final int STATUS_NULL
constant for unset status- See Also:
- Constant Field Values
-
STATUS_OPEN_PARAGRAPH
public static final int STATUS_OPEN_PARAGRAPH
constant for open paragraph- See Also:
- Constant Field Values
-
STATUS_CLOSE_PARAGRAPH
public static final int STATUS_CLOSE_PARAGRAPH
constant for close paragraph- See Also:
- Constant Field Values
-
status
private int status
-
-
Constructor Detail
-
RtfParagraphKeepTogether
RtfParagraphKeepTogether(IRtfParagraphContainer parent, java.io.Writer w) throws java.io.IOException
RtfParagraphKeepTogether- Throws:
java.io.IOException
-
-
Method Detail
-
writeRtfContent
protected void writeRtfContent() throws java.io.IOException
Write the content- Overrides:
writeRtfContent
in classRtfContainer
- Throws:
java.io.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:
isEmpty
in classRtfContainer
- Returns:
- true if this element would generate no "useful" RTF content
-
-