Class RtfParagraphBreak


  • public class RtfParagraphBreak
    extends RtfElement
    Class which represents a paragraph break.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class RtfElement
        Returns:
        true if this element would generate no "useful" RTF content
      • writeRtfContent

        protected void writeRtfContent()
                                throws java.io.IOException
        write RTF code of all our children
        Specified by:
        writeRtfContent in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • canHide

        public boolean canHide()
        Whether or not the break can be skipped. If the paragraph marks a table cell end it is not possible
        Returns:
        boolean
      • switchControlWord

        public void switchControlWord​(java.lang.String controlWord)
        Sets a different control word for this paragraph. If this method is used the paragraph will always be displayed (@see canHide))
        Parameters:
        controlWord - the new control word