Class RtfBookmarkContainerImpl

  • All Implemented Interfaces:
    IRtfBookmarkContainer
    Direct Known Subclasses:
    RtfParagraph

    public class RtfBookmarkContainerImpl
    extends RtfContainer
    implements IRtfBookmarkContainer

    RTF Bookmark container implementation. Nearly all containers or elements can have a bookmark, that is why the bookmark container is implemented as stand alone.

    This work was authored by Andreas Putz (a.putz@skynamics.com).

    • Field Detail

      • mBookmark

        private RtfBookmark mBookmark
        Rtf bookmark
    • Constructor Detail

      • RtfBookmarkContainerImpl

        RtfBookmarkContainerImpl​(RtfContainer parent,
                                 java.io.Writer w)
                          throws java.io.IOException
        Constructor. Create an RTF container as a child of given container.
        Parameters:
        parent - The parent container
        w - Writer
        Throws:
        java.io.IOException - On error
      • RtfBookmarkContainerImpl

        RtfBookmarkContainerImpl​(RtfContainer parent,
                                 java.io.Writer w,
                                 RtfAttributes attr)
                          throws java.io.IOException
        Constructor. Create an RTF container as a child of given container.
        Parameters:
        parent - The parent container
        w - Writer
        attr - Rtf attributes
        Throws:
        java.io.IOException - On error
    • Method Detail

      • newBookmark

        public RtfBookmark newBookmark​(java.lang.String bookmark)
                                throws java.io.IOException
        Create a new RTF bookmark.
        Specified by:
        newBookmark in interface IRtfBookmarkContainer
        Parameters:
        bookmark - Name of the bookmark
        Returns:
        RTF bookmark
        Throws:
        java.io.IOException - On eror