|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.JRHyperlinkHelper
public final class JRHyperlinkHelper
Utility class that manages built-in hyperlink types.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 object
public 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 type
public static byte getHyperlinkTarget(JRHyperlink hyperlink)
HyperlinkTargetEnum.CUSTOM
if the target name is not a built-in one.
hyperlink - the hyperlink object
public 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 type
public static String getLinkType(byte hyperlinkType)
getLinkType(HyperlinkTypeEnum).
public static String getLinkType(HyperlinkTypeEnum hyperlinkType)
hyperlinkType - the built-in type
public static String getLinkTarget(byte hyperlinkTarget)
getLinkTarget(HyperlinkTargetEnum).
public static String getLinkTarget(HyperlinkTargetEnum hyperlinkTarget)
hyperlinkTarget - the built-in target type
public 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 hyperlink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||