public class JRDesignHyperlink extends JRBaseHyperlink implements JRChangeEventsSupport
JRHyperlink
which should be used for report design purposes.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HYPERLINK_ANCHOR_EXPRESSION |
static String |
PROPERTY_HYPERLINK_PAGE_EXPRESSION |
static String |
PROPERTY_HYPERLINK_PARAMETERS |
static String |
PROPERTY_HYPERLINK_REFERENCE_EXPRESSION |
static String |
PROPERTY_HYPERLINK_TARGET |
static String |
PROPERTY_HYPERLINK_TOOLTIP_EXPRESSION |
static String |
PROPERTY_HYPERLINK_WHEN_EXPRESSION |
static String |
PROPERTY_LINK_TARGET |
static String |
PROPERTY_LINK_TYPE |
hyperlinkAnchorExpression, hyperlinkPageExpression, hyperlinkReferenceExpression, hyperlinkTooltipExpression, hyperlinkWhenExpression, linkTarget, linkType
Constructor and Description |
---|
JRDesignHyperlink() |
Modifier and Type | Method and Description |
---|---|
void |
addHyperlinkParameter(JRHyperlinkParameter parameter)
Adds a custom hyperlink parameter.
|
Object |
clone() |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
JRHyperlinkParameter[] |
getHyperlinkParameters()
Returns the list of hyperlink parameters.
|
List<JRHyperlinkParameter> |
getHyperlinkParametersList()
Returns the list of custom hyperlink parameters.
|
void |
removeHyperlinkParameter(JRHyperlinkParameter parameter)
Removes a custom hyperlink parameter.
|
void |
removeHyperlinkParameter(String parameterName)
Removes a custom hyperlink parameter.
|
void |
setHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression)
Sets the expression that will generate the referred anchor.
|
void |
setHyperlinkPageExpression(JRExpression hyperlinkPageExpression)
Sets the expression that will generate the referred page.
|
void |
setHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression)
Sets the expression that will generate the hyperlink reference URL
or the referred document location.
|
void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
Sets the hyperlink target.
|
void |
setHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression)
Sets the expression which will be used to generate the hyperlink tooltip.
|
void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type.
|
void |
setHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression)
Sets the boolean expression that will specify if the hyperlink should be displayed or not.
|
void |
setLinkTarget(String target)
Sets the hyperlink target name.
|
void |
setLinkType(String type)
Sets the hyperlink type.
|
copyHyperlinkParameters, getHyperlinkAnchorExpression, getHyperlinkPageExpression, getHyperlinkReferenceExpression, getHyperlinkTarget, getHyperlinkTooltipExpression, getHyperlinkType, getHyperlinkTypeValue, getHyperlinkWhenExpression, getLinkTarget, getLinkType
public static final String PROPERTY_HYPERLINK_ANCHOR_EXPRESSION
public static final String PROPERTY_HYPERLINK_PAGE_EXPRESSION
public static final String PROPERTY_HYPERLINK_REFERENCE_EXPRESSION
public static final String PROPERTY_HYPERLINK_WHEN_EXPRESSION
public static final String PROPERTY_HYPERLINK_TARGET
public static final String PROPERTY_LINK_TARGET
public static final String PROPERTY_HYPERLINK_TOOLTIP_EXPRESSION
public static final String PROPERTY_LINK_TYPE
public static final String PROPERTY_HYPERLINK_PARAMETERS
public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
hyperlinkType
- the built-in hyperlink typeJRBaseHyperlink.getLinkType()
public void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
hyperlinkTarget
- the hyperlink target, one of
JRBaseHyperlink.getHyperlinkTarget()
public void setHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression)
This expression is used when the hyperlink type is
HyperlinkTypeEnum.REFERENCE
,
HyperlinkTypeEnum.REMOTE_ANCHOR
or
HyperlinkTypeEnum.REMOTE_PAGE
.
The type of the expression should be java.lang.String
hyperlinkReferenceExpression
- the reference expressionJRBaseHyperlink.getHyperlinkReferenceExpression()
public void setHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression)
public void setHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression)
This expression is used when the hyperlink type is
HyperlinkTypeEnum.LOCAL_ANCHOR
or
HyperlinkTypeEnum.REMOTE_ANCHOR
.
The type of the expression should be java.lang.String
hyperlinkAnchorExpression
- the anchor expressionJRBaseHyperlink.getHyperlinkAnchorExpression()
public void setHyperlinkPageExpression(JRExpression hyperlinkPageExpression)
This expression is used when the hyperlink type is
HyperlinkTypeEnum.LOCAL_PAGE
or
HyperlinkTypeEnum.REMOTE_PAGE
.
The type of the expression should be java.lang.Integer
hyperlinkPageExpression
- the page expressionJRBaseHyperlink.getHyperlinkPageExpression()
public void setLinkType(String type)
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
type
- the hyperlink typepublic void setLinkTarget(String target)
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
target
- the hyperlink target namepublic JRHyperlinkParameter[] getHyperlinkParameters()
JRHyperlink
The parameters can be used by custom hyperlink types to generate dynamic links.
getHyperlinkParameters
in interface JRHyperlink
getHyperlinkParameters
in class JRBaseHyperlink
public List<JRHyperlinkParameter> getHyperlinkParametersList()
public void addHyperlinkParameter(JRHyperlinkParameter parameter)
parameter
- the parameter to addpublic void removeHyperlinkParameter(JRHyperlinkParameter parameter)
parameter
- the parameter to removepublic void removeHyperlinkParameter(String parameterName)
If multiple parameters having the specified name exist, all of them will be removed
parameterName
- the parameter namepublic void setHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression)
java.lang.String
.hyperlinkTooltipExpression
- the expression which will be used to generate the hyperlink tooltipJRBaseHyperlink.getHyperlinkTooltipExpression()
public Object clone()
clone
in interface JRCloneable
clone
in class JRBaseHyperlink
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
Copyright © 2019 TIBCO Software Inc.. All rights reserved.