public final class JRHyperlinkHelper extends Object
Modifier and Type | Method and Description |
---|---|
static byte |
getHyperlinkTarget(JRHyperlink hyperlink)
Returns the built-in hyperlink target, or
HyperlinkTargetEnum.CUSTOM
if the target name is not a built-in one. |
static byte |
getHyperlinkTarget(String linkTarget)
Deprecated.
Replaced by
getHyperlinkTargetValue(String) . |
static HyperlinkTargetEnum |
getHyperlinkTargetValue(String linkTarget)
Returns the built-in hyperlink target, or
HyperlinkTargetEnum.CUSTOM
if the target name is not a built-in one. |
static byte |
getHyperlinkType(JRHyperlink hyperlink)
Deprecated.
Replaced by
getHyperlinkTypeValue(JRHyperlink) . |
static byte |
getHyperlinkType(String linkType)
Deprecated.
Replaced by
getHyperlinkTypeValue(String) . |
static HyperlinkTypeEnum |
getHyperlinkTypeValue(JRHyperlink hyperlink)
Returns the built-in hyperlink type, or
HyperlinkTypeEnum.CUSTOM
if the type is not a built-in type. |
static HyperlinkTypeEnum |
getHyperlinkTypeValue(String linkType)
Returns the built-in hyperlink type, or
HyperlinkTypeEnum.CUSTOM
if the type is not a built-in type. |
static String |
getLinkTarget(byte hyperlinkTarget)
Deprecated.
Replaced by
getLinkTarget(HyperlinkTargetEnum) . |
static String |
getLinkTarget(HyperlinkTargetEnum hyperlinkTarget)
Returns the link target associated with a built-in target.
|
static String |
getLinkType(byte hyperlinkType)
Deprecated.
Replaced by
getLinkType(HyperlinkTypeEnum) . |
static String |
getLinkType(HyperlinkTypeEnum hyperlinkType)
Returns the link type associated with a built-in type.
|
static boolean |
isEmpty(JRHyperlink hyperlink)
Decides whether a hyperlink is empty or not.
|
public static byte getHyperlinkType(JRHyperlink hyperlink)
getHyperlinkTypeValue(JRHyperlink)
.public static HyperlinkTypeEnum getHyperlinkTypeValue(JRHyperlink hyperlink)
HyperlinkTypeEnum.CUSTOM
if the type is not a built-in type.hyperlink
- the hyperlink objectpublic static byte getHyperlinkType(String linkType)
getHyperlinkTypeValue(String)
.public static HyperlinkTypeEnum getHyperlinkTypeValue(String linkType)
HyperlinkTypeEnum.CUSTOM
if the type is not a built-in type.linkType
- the link typepublic static byte getHyperlinkTarget(JRHyperlink hyperlink)
HyperlinkTargetEnum.CUSTOM
if the target name is not a built-in one.hyperlink
- the hyperlink objectpublic static byte getHyperlinkTarget(String linkTarget)
getHyperlinkTargetValue(String)
.public static HyperlinkTargetEnum getHyperlinkTargetValue(String linkTarget)
HyperlinkTargetEnum.CUSTOM
if the target name is not a built-in one.linkTarget
- the link target typepublic static String getLinkType(byte hyperlinkType)
getLinkType(HyperlinkTypeEnum)
.public static String getLinkType(HyperlinkTypeEnum hyperlinkType)
hyperlinkType
- the built-in typepublic static String getLinkTarget(byte hyperlinkTarget)
getLinkTarget(HyperlinkTargetEnum)
.public static String getLinkTarget(HyperlinkTargetEnum hyperlinkTarget)
hyperlinkTarget
- the built-in target typepublic static boolean isEmpty(JRHyperlink hyperlink)
The hyperlink is considered empty when it's null
or when
its type is NONE
and it doesn't include a tooltip expression
hyperlink
- the hyperlinkCopyright © 2015. All rights reserved.