org.jfor.jfor.rtflib.rtfdoc
Class RtfParagraphKeepTogether

java.lang.Object
  extended by org.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended by org.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended by org.jfor.jfor.rtflib.rtfdoc.RtfParagraphKeepTogether

public class RtfParagraphKeepTogether
extends RtfContainer


Field Summary
static int STATUS_CLOSE_PARAGRAPH
           
static int STATUS_NULL
           
static int STATUS_OPEN_PARAGRAPH
           
 
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
m_attrib, m_parent, m_writer
 
Constructor Summary
RtfParagraphKeepTogether(IRtfParagraphContainer parent, java.io.Writer w)
          RtfParagraphKeepTogether
 
Method Summary
 boolean isEmpty()
          true if this element would generate no "useful" RTF content
 void setStatus(int status)
           
protected  void writeRtfContent()
          write RTF code of all our children
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toString
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_NULL

public static final int STATUS_NULL
See Also:
Constant Field Values

STATUS_OPEN_PARAGRAPH

public static final int STATUS_OPEN_PARAGRAPH
See Also:
Constant Field Values

STATUS_CLOSE_PARAGRAPH

public static final int STATUS_CLOSE_PARAGRAPH
See Also:
Constant Field Values
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
Description copied from class: RtfContainer
write RTF code of all our children

Overrides:
writeRtfContent in class RtfContainer
Throws:
java.io.IOException

setStatus

public void setStatus(int status)

isEmpty

public boolean isEmpty()
true if this element would generate no "useful" RTF content

Overrides:
isEmpty in class RtfContainer