|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
org.jfor.jfor.rtflib.rtfdoc.RtfBookmarkContainerImpl
org.jfor.jfor.rtflib.rtfdoc.RtfParagraph
public class RtfParagraph
Model of an RTF paragraph, which can contain RTF text elements.
Field Summary |
---|
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfBookmarkContainerImpl |
---|
mBookmark |
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
---|
m_attrib, m_parent, m_writer |
Constructor Summary | |
---|---|
RtfParagraph(IRtfParagraphContainer parent,
java.io.Writer w)
Create an RTF paragraph as a child of given container with default attributes |
|
RtfParagraph(IRtfParagraphContainer parent,
java.io.Writer w,
RtfAttributes attr)
Create an RTF paragraph as a child of given container with given attributes |
Method Summary | |
---|---|
java.lang.String |
getText()
|
RtfAttributes |
getTextAttributes()
get the attributes of our text |
RtfAttributes |
getTextContainerAttributes()
IRtfTextContainer requirement: return a copy of our attributes |
RtfHyperLink |
newHyperLink(java.lang.String str,
RtfAttributes attr)
Creates a new hyperlink. |
RtfExternalGraphic |
newImage()
start a new external graphic after closing all other elements |
void |
newLineBreak()
add a line break |
void |
newPageBreak()
add a page break |
RtfPageNumber |
newPageNumber()
|
RtfPageNumberCitation |
newPageNumberCitation(java.lang.String id)
Added by Boris POUDEROUS on 2002/07/09 |
RtfText |
newText(java.lang.String str)
close current text run if any and start a new one with default attributes |
RtfText |
newText(java.lang.String str,
RtfAttributes attr)
close current text run if any and start a new one |
protected boolean |
okToWriteRtf()
depending on RtfOptions, do not emit any RTF for empty paragraphs |
void |
setKeepn()
Set the keepn attribute for this paragraph |
void |
setResetProperties()
Force reset properties |
protected void |
writeRtfPrefix()
overridden to write our attributes before our content |
protected void |
writeRtfSuffix()
overridden to close paragraph |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfBookmarkContainerImpl |
---|
newBookmark |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer |
---|
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, 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, writeStarControlWord, writeStarControlWordNS |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
RtfParagraph(IRtfParagraphContainer parent, java.io.Writer w) throws java.io.IOException
java.io.IOException
RtfParagraph(IRtfParagraphContainer parent, java.io.Writer w, RtfAttributes attr) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getText()
public void setKeepn()
public void setResetProperties()
public RtfAttributes getTextContainerAttributes()
getTextContainerAttributes
in interface IRtfTextContainer
protected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
protected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
public RtfText newText(java.lang.String str) throws java.io.IOException
newText
in interface IRtfTextContainer
str
- if not null, added to the RtfText created
java.io.IOException
public RtfText newText(java.lang.String str, RtfAttributes attr) throws java.io.IOException
newText
in interface IRtfTextContainer
str
- if not null, added to the RtfText created
java.io.IOException
public void newPageBreak() throws java.io.IOException
newPageBreak
in interface IRtfPageBreakContainer
java.io.IOException
public void newLineBreak() throws java.io.IOException
newLineBreak
in interface IRtfTextContainer
java.io.IOException
public RtfPageNumber newPageNumber() throws java.io.IOException
newPageNumber
in interface IRtfPageNumberContainer
java.io.IOException
public RtfPageNumberCitation newPageNumberCitation(java.lang.String id) throws java.io.IOException
newPageNumberCitation
in interface IRtfPageNumberCitationContainer
java.io.IOException
public RtfHyperLink newHyperLink(java.lang.String str, RtfAttributes attr) throws java.io.IOException
newHyperLink
in interface IRtfHyperLinkContainer
java.io.IOException
- on errorpublic RtfExternalGraphic newImage() throws java.io.IOException
newImage
in interface IRtfExternalGraphicContainer
java.io.IOException
- On errorprotected boolean okToWriteRtf()
okToWriteRtf
in class RtfContainer
public RtfAttributes getTextAttributes()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |