org.jfor.jfor.rtflib.rtfdoc
Class RtfBookmarkContainerImpl
java.lang.Object
org.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
org.jfor.jfor.rtflib.rtfdoc.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.
- Author:
- Andreas Putz
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer |
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent |
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 |
mBookmark
RtfBookmark mBookmark
- Rtf bookmark
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 containerw
- 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 containerw
- Writerattr
- Rtf attributes
- Throws:
java.io.IOException
- On error
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