|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHyperLink
public class RtfHyperLink
Creates an hyperlink.
This class belongs to the
This work was authored by Andreas Putz (a.putz@skynamics.com).
| Field Summary | |
|---|---|
protected RtfText |
mText
RtfText |
protected java.lang.String |
url
The url of the image |
| Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
|---|
attrib, parent, writer |
| Constructor Summary | |
|---|---|
RtfHyperLink(IRtfTextContainer parent,
java.io.Writer writer,
java.lang.String str,
RtfAttributes attr)
A constructor. |
|
RtfHyperLink(RtfTextrun parent,
java.io.Writer writer,
RtfAttributes attr)
A constructor. |
|
| Method Summary | |
|---|---|
RtfAttributes |
getTextContainerAttributes()
IRtfTextContainer requirement: |
RtfTextrun |
getTextrun()
Returns the current RtfTextrun object. |
boolean |
isEmpty()
|
void |
newLineBreak()
add a line break |
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 |
void |
setExternalURL(java.lang.String url)
Sets the url of the external link. |
void |
setInternalURL(java.lang.String jumpTo)
Sets the url of the external link. |
void |
writeRtfPrefix()
Writes the RTF content to m_writer. |
void |
writeRtfSuffix()
Writes the RTF content to m_writer. |
| Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer |
|---|
addChild, findChildren, getChildCount, getChildren, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent |
| Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
|---|
close, getParentOfClass, getRtfAttributes, newLine, 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 |
| Field Detail |
|---|
protected java.lang.String url
protected RtfText mText
| Constructor Detail |
|---|
public RtfHyperLink(IRtfTextContainer parent,
java.io.Writer writer,
java.lang.String str,
RtfAttributes attr)
throws java.io.IOException
parent - a RtfContainer valuewriter - a Writer valuestr - text of the linkattr - a RtfAttributes value
java.io.IOException - for I/O problems
public RtfHyperLink(RtfTextrun parent,
java.io.Writer writer,
RtfAttributes attr)
throws java.io.IOException
parent - a RtfContainer valuewriter - a Writer valueattr - a RtfAttributes value
java.io.IOException - for I/O problems| Method Detail |
|---|
public void writeRtfPrefix()
throws java.io.IOException
writeRtfPrefix in class RtfElementjava.io.IOException - On error
public void writeRtfSuffix()
throws java.io.IOException
writeRtfSuffix in class RtfElementjava.io.IOException - On error
public RtfText newText(java.lang.String str)
throws java.io.IOException
newText in interface IRtfTextContainerstr - if not null, added to the RtfText created
java.io.IOException - for I/O problems
public RtfText newText(java.lang.String str,
RtfAttributes attr)
throws java.io.IOException
newText in interface IRtfTextContainerstr - if not null, added to the RtfText createdattr - attributes of text to add
java.io.IOException - for I/O problems
public RtfAttributes getTextContainerAttributes()
throws FOPException
getTextContainerAttributes in interface IRtfTextContainerFOPException - if attributes cannot be cloned
public void newLineBreak()
throws java.io.IOException
newLineBreak in interface IRtfTextContainerjava.io.IOException - for I/O problemspublic void setExternalURL(java.lang.String url)
url - Link url like "http://..."public void setInternalURL(java.lang.String jumpTo)
jumpTo - Name of the text markpublic boolean isEmpty()
isEmpty in class RtfContainer
public RtfTextrun getTextrun()
throws java.io.IOException
IRtfTextrunContainer
getTextrun in interface IRtfTextrunContainerjava.io.IOException - if not caught
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||