Class JRDesignHyperlink
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRHyperlink
JRHyperlink
which should be used for report design purposes.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class net.sf.jasperreports.engine.base.JRBaseHyperlink
hyperlinkAnchorExpression, hyperlinkPageExpression, hyperlinkParameters, hyperlinkReferenceExpression, hyperlinkTooltipExpression, hyperlinkWhenExpression, linkTarget, linkType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHyperlinkParameter(JRHyperlinkParameter parameter) Adds a custom hyperlink parameter.clone()Returns the property change support object for this instance.Returns the list of hyperlink parameters.Returns the list of custom hyperlink parameters.voidremoveHyperlinkParameter(String parameterName) Removes a custom hyperlink parameter.voidremoveHyperlinkParameter(JRHyperlinkParameter parameter) Removes a custom hyperlink parameter.voidsetHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression) Sets the expression that will generate the referred anchor.voidsetHyperlinkPageExpression(JRExpression hyperlinkPageExpression) Sets the expression that will generate the referred page.voidsetHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression) Sets the expression that will generate the hyperlink reference URL or the referred document location.voidsetHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget) Sets the hyperlink target.voidsetHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression) Sets the expression which will be used to generate the hyperlink tooltip.voidsetHyperlinkType(HyperlinkTypeEnum hyperlinkType) Sets the link type as a built-in hyperlink type.voidsetHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression) Sets the boolean expression that will specify if the hyperlink should be displayed or not.voidsetLinkTarget(String target) Sets the hyperlink target name.voidsetLinkType(String type) Sets the hyperlink type.Methods inherited from class net.sf.jasperreports.engine.base.JRBaseHyperlink
copyHyperlinkParameters, getHyperlinkAnchorExpression, getHyperlinkPageExpression, getHyperlinkReferenceExpression, getHyperlinkTarget, getHyperlinkTooltipExpression, getHyperlinkType, getHyperlinkWhenExpression, getLinkTarget, getLinkType
-
Field Details
-
PROPERTY_HYPERLINK_ANCHOR_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_PAGE_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_REFERENCE_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_WHEN_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_TARGET
- See Also:
-
PROPERTY_LINK_TARGET
- See Also:
-
PROPERTY_HYPERLINK_TOOLTIP_EXPRESSION
- See Also:
-
PROPERTY_LINK_TYPE
- See Also:
-
PROPERTY_HYPERLINK_PARAMETERS
- See Also:
-
-
Constructor Details
-
JRDesignHyperlink
public JRDesignHyperlink()
-
-
Method Details
-
setHyperlinkType
Sets the link type as a built-in hyperlink type.- Parameters:
hyperlinkType- the built-in hyperlink type- See Also:
-
setHyperlinkTarget
Sets the hyperlink target.- Parameters:
hyperlinkTarget- the hyperlink target, one of- See Also:
-
setHyperlinkReferenceExpression
Sets the expression that will generate the hyperlink reference URL or the referred document location.This expression is used when the hyperlink type is
HyperlinkTypeEnum.REFERENCE,HyperlinkTypeEnum.REMOTE_ANCHORorHyperlinkTypeEnum.REMOTE_PAGE. The type of the expression should bejava.lang.String- Parameters:
hyperlinkReferenceExpression- the reference expression- See Also:
-
setHyperlinkWhenExpression
Sets the boolean expression that will specify if the hyperlink should be displayed or not. -
setHyperlinkAnchorExpression
Sets the expression that will generate the referred anchor.This expression is used when the hyperlink type is
HyperlinkTypeEnum.LOCAL_ANCHORorHyperlinkTypeEnum.REMOTE_ANCHOR. The type of the expression should bejava.lang.String- Parameters:
hyperlinkAnchorExpression- the anchor expression- See Also:
-
setHyperlinkPageExpression
Sets the expression that will generate the referred page.This expression is used when the hyperlink type is
HyperlinkTypeEnum.LOCAL_PAGEorHyperlinkTypeEnum.REMOTE_PAGE. The type of the expression should bejava.lang.Integer- Parameters:
hyperlinkPageExpression- the page expression- See Also:
-
setLinkType
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.
- Parameters:
type- the hyperlink type
-
setLinkTarget
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.
- Parameters:
target- the hyperlink target name
-
getHyperlinkParameters
Description copied from interface:JRHyperlinkReturns the list of hyperlink parameters.The parameters can be used by custom hyperlink types to generate dynamic links.
- Specified by:
getHyperlinkParametersin interfaceJRHyperlink- Overrides:
getHyperlinkParametersin classJRBaseHyperlink- Returns:
- the list of hyperlink parameters
-
getHyperlinkParametersList
Returns the list of custom hyperlink parameters.- Returns:
- the list of custom hyperlink parameters
-
addHyperlinkParameter
Adds a custom hyperlink parameter.- Parameters:
parameter- the parameter to add
-
removeHyperlinkParameter
Removes a custom hyperlink parameter.- Parameters:
parameter- the parameter to remove
-
removeHyperlinkParameter
Removes a custom hyperlink parameter.If multiple parameters having the specified name exist, all of them will be removed
- Parameters:
parameterName- the parameter name
-
setHyperlinkTooltipExpression
Sets the expression which will be used to generate the hyperlink tooltip. The type of the expression should bejava.lang.String.- Parameters:
hyperlinkTooltipExpression- the expression which will be used to generate the hyperlink tooltip- See Also:
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseHyperlink
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-