Package net.sf.jasperreports.engine.base
Class JRBasePrintHyperlink
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBasePrintHyperlink
-
- All Implemented Interfaces:
Serializable
,JRPrintHyperlink
public class JRBasePrintHyperlink extends Object implements JRPrintHyperlink, Serializable
Stand-alone implementation ofJRPrintHyperlink
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.engine.JRPrintHyperlink
PROPERTY_IGNORE_HYPERLINK_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description JRBasePrintHyperlink()
Creates a blank hyperlink.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
Adds a custom hyperlink parameter.String
getHyperlinkAnchor()
Integer
getHyperlinkPage()
JRPrintHyperlinkParameters
getHyperlinkParameters()
Returns the set of custom hyperlink parameters.String
getHyperlinkReference()
HyperlinkTargetEnum
getHyperlinkTarget()
String
getHyperlinkTooltip()
Returns the hyperlink tooltip.HyperlinkTypeEnum
getHyperlinkType()
Retrieves the hyperlink type for the element.String
getLinkTarget()
Returns the hyperlink target name.String
getLinkType()
Returns the hyperlink type.void
setHyperlinkAnchor(String hyperlinkAnchor)
void
setHyperlinkPage(Integer hyperlinkPage)
void
setHyperlinkParameters(JRPrintHyperlinkParameters parameters)
Sets the custom hyperlink parameters.void
setHyperlinkReference(String hyperlinkReference)
void
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
void
setHyperlinkTooltip(String hyperlinkTooltip)
Sets the tooltip to be used for the hyperlink.void
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type.void
setLinkTarget(String linkTarget)
Sets the hyperlink target name.void
setLinkType(String type)
Sets the hyperlink type.
-
-
-
Method Detail
-
getHyperlinkAnchor
public String getHyperlinkAnchor()
- Specified by:
getHyperlinkAnchor
in interfaceJRPrintHyperlink
-
getHyperlinkPage
public Integer getHyperlinkPage()
- Specified by:
getHyperlinkPage
in interfaceJRPrintHyperlink
-
getHyperlinkParameters
public JRPrintHyperlinkParameters getHyperlinkParameters()
Description copied from interface:JRPrintHyperlink
Returns the set of custom hyperlink parameters.- Specified by:
getHyperlinkParameters
in interfaceJRPrintHyperlink
- Returns:
- the set of custom hyperlink parameters
- See Also:
JRPrintHyperlink.setHyperlinkParameters(JRPrintHyperlinkParameters)
,JRPrintHyperlinkParameter
-
getHyperlinkReference
public String getHyperlinkReference()
- Specified by:
getHyperlinkReference
in interfaceJRPrintHyperlink
-
getHyperlinkTarget
public HyperlinkTargetEnum getHyperlinkTarget()
- Specified by:
getHyperlinkTarget
in interfaceJRPrintHyperlink
-
getHyperlinkType
public HyperlinkTypeEnum getHyperlinkType()
Description copied from interface:JRPrintHyperlink
Retrieves the hyperlink type for the element.The actual hyperlink type is determined by
getLinkType()
. This method can is used to determine whether the hyperlink type is one of the built-in types or a custom type. When hyperlink is of custom type,CUSTOM
is returned.- Specified by:
getHyperlinkType
in interfaceJRPrintHyperlink
- Returns:
- one of the hyperlink type constants
- See Also:
JRPrintHyperlink.getLinkType()
-
getLinkType
public String getLinkType()
Description copied from interface:JRPrintHyperlink
Returns the hyperlink type.- Specified by:
getLinkType
in interfaceJRPrintHyperlink
- Returns:
- the hyperlink type
-
getLinkTarget
public String getLinkTarget()
Description copied from interface:JRPrintHyperlink
Returns the hyperlink target name.The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
- Specified by:
getLinkTarget
in interfaceJRPrintHyperlink
- Returns:
- the hyperlink type
-
setHyperlinkAnchor
public void setHyperlinkAnchor(String hyperlinkAnchor)
- Specified by:
setHyperlinkAnchor
in interfaceJRPrintHyperlink
-
setHyperlinkPage
public void setHyperlinkPage(Integer hyperlinkPage)
- Specified by:
setHyperlinkPage
in interfaceJRPrintHyperlink
-
setHyperlinkParameters
public void setHyperlinkParameters(JRPrintHyperlinkParameters parameters)
Description copied from interface:JRPrintHyperlink
Sets the custom hyperlink parameters.These parameters will be used to produce the actual hyperlink when the report is exported.
- Specified by:
setHyperlinkParameters
in interfaceJRPrintHyperlink
- Parameters:
parameters
- the set of custom hyperlink parameters
-
setHyperlinkReference
public void setHyperlinkReference(String hyperlinkReference)
- Specified by:
setHyperlinkReference
in interfaceJRPrintHyperlink
-
setHyperlinkTarget
public void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
- Specified by:
setHyperlinkTarget
in interfaceJRPrintHyperlink
-
setLinkTarget
public void setLinkTarget(String linkTarget)
Description copied from interface:JRPrintHyperlink
Sets the hyperlink target name.The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
- Specified by:
setLinkTarget
in interfaceJRPrintHyperlink
- Parameters:
linkTarget
- the hyperlink target name
-
setHyperlinkType
public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Description copied from interface:JRPrintHyperlink
Sets the link type as a built-in hyperlink type.- Specified by:
setHyperlinkType
in interfaceJRPrintHyperlink
- Parameters:
hyperlinkType
- the built-in hyperlink type- See Also:
JRPrintHyperlink.getLinkType()
-
setLinkType
public void setLinkType(String type)
Description copied from interface:JRPrintHyperlink
Sets the hyperlink type.The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
- Specified by:
setLinkType
in interfaceJRPrintHyperlink
- Parameters:
type
- the hyperlink type
-
addHyperlinkParameter
public void addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
Adds a custom hyperlink parameter.- Parameters:
parameter
- the parameter to add- See Also:
getHyperlinkParameters()
,JRPrintHyperlinkParameters.addParameter(JRPrintHyperlinkParameter)
-
getHyperlinkTooltip
public String getHyperlinkTooltip()
Description copied from interface:JRPrintHyperlink
Returns the hyperlink tooltip.- Specified by:
getHyperlinkTooltip
in interfaceJRPrintHyperlink
- Returns:
- the hyperlink tooltip
-
setHyperlinkTooltip
public void setHyperlinkTooltip(String hyperlinkTooltip)
Description copied from interface:JRPrintHyperlink
Sets the tooltip to be used for the hyperlink.- Specified by:
setHyperlinkTooltip
in interfaceJRPrintHyperlink
- Parameters:
hyperlinkTooltip
- the tooltip
-
-