Class RtfListItem

    • Method Detail

      • newParagraph

        public RtfParagraph newParagraph​(RtfAttributes attrs)
                                  throws java.io.IOException
        Close current paragraph if any and start a new one
        Specified by:
        newParagraph in interface IRtfParagraphContainer
        Parameters:
        attrs - attributes of new paragraph
        Returns:
        new RtfParagraph
        Throws:
        java.io.IOException - Thrown when an IO-problem occurs
      • newParagraph

        public RtfParagraph newParagraph()
                                  throws java.io.IOException
        Close current paragraph if any and start a new one with default attributes
        Specified by:
        newParagraph in interface IRtfParagraphContainer
        Returns:
        new RtfParagraph
        Throws:
        java.io.IOException - Thrown when an IO-problem occurs
      • getTextrun

        public RtfTextrun getTextrun()
                              throws java.io.IOException
        Get the current textrun.
        Specified by:
        getTextrun in interface IRtfTextrunContainer
        Returns:
        current RtfTextrun object
        Throws:
        java.io.IOException - Thrown when an IO-problem occurs
      • newList

        public RtfList newList​(RtfAttributes attrs)
                        throws java.io.IOException
        Start a new list after closing current paragraph, list and table
        Specified by:
        newList in interface IRtfListContainer
        Parameters:
        attrs - attributes of new RftList object
        Returns:
        new RtfList
        Throws:
        java.io.IOException - for I/O problems
      • writeRtfPrefix

        protected void writeRtfPrefix()
                               throws java.io.IOException
        Overridden to setup the list: start a group with appropriate attributes
        Overrides:
        writeRtfPrefix in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • writeRtfSuffix

        protected void writeRtfSuffix()
                               throws java.io.IOException
        End the list group
        Overrides:
        writeRtfSuffix in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • setRtfListStyle

        public void setRtfListStyle​(RtfListStyle ls)
        Change list style
        Parameters:
        ls - ListStyle to set
      • getRtfListStyle

        public RtfListStyle getRtfListStyle()
        Get list style
        Returns:
        ListSytle of the List
      • getParentList

        public RtfList getParentList()
        Get the parent list.
        Returns:
        the parent list
      • getNumber

        public int getNumber()
        Returns the list number
        Returns:
        list number