org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfHyperLink
- IRtfTextContainer, IRtfTextrunContainer
public class RtfHyperLink
Creates an hyperlink.
This class belongs to the tag processing.
- Andreas Putz
{\field {\*\fldinst HYPERLINK "http://www.test.de" }{\fldrslt Joe Smith}}
close, getRtfAttributes, isEmpty, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfContent, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS |
mText
protected RtfText mText
RtfText
url
protected String url
The url of the image
RtfHyperLink
public RtfHyperLink(IRtfTextContainer parent,
Writer writer,
String str,
RtfAttributes attr)
throws IOException Default constructor.
parent - a RtfContainer valuewriter - a Writer valuestr - text of the linkattr - a RtfAttributes value
newText
public RtfText newText(String str)
throws IOException close current text run if any and start a new one with default attributes
- newText in interface IRtfTextContainer
str - if not null, added to the RtfText created
newText
public RtfText newText(String str,
RtfAttributes attr)
throws IOException close current text run if any and start a new one
- newText in interface IRtfTextContainer
str - if not null, added to the RtfText createdattr - attributes of text to add
setExternalURL
public void setExternalURL(String url)
Sets the url of the external link.
url - Link url like "http://..."
setInternalURL
public void setInternalURL(String jumpTo)
Sets the url of the external link.
jumpTo - Name of the text mark
writeRtfPrefix
public void writeRtfPrefix()
throws IOException Writes the RTF content to m_writer.
- writeRtfPrefix in interface RtfElement
writeRtfSuffix
public void writeRtfSuffix()
throws IOException Writes the RTF content to m_writer.
- writeRtfSuffix in interface RtfElement
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.