Package net.sf.jasperreports.engine.type
Enum HyperlinkTargetEnum
- java.lang.Object
-
- java.lang.Enum<HyperlinkTargetEnum>
-
- net.sf.jasperreports.engine.type.HyperlinkTargetEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<HyperlinkTargetEnum>
,NamedEnum
public enum HyperlinkTargetEnum extends Enum<HyperlinkTargetEnum> implements NamedEnum
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLANK
Constant useful for specifying that the hyperlink will be opened in a new window.CUSTOM
Custom hyperlink target name.NONE
Target not defined.PARENT
Constant useful for specifying that the hyperlink will be opened in the parent frame.SELF
Constant useful for specifying that the hyperlink will be opened in the same window.TOP
Constant useful for specifying that the hyperlink will be opened in the top frame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HyperlinkTargetEnum
getByName(String name)
String
getHtmlValue()
String
getName()
static HyperlinkTargetEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static HyperlinkTargetEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.sf.jasperreports.engine.type.NamedEnum
getDefault
-
-
-
-
Enum Constant Detail
-
NONE
public static final HyperlinkTargetEnum NONE
Target not defined.
-
SELF
public static final HyperlinkTargetEnum SELF
Constant useful for specifying that the hyperlink will be opened in the same window.
-
BLANK
public static final HyperlinkTargetEnum BLANK
Constant useful for specifying that the hyperlink will be opened in a new window.
-
PARENT
public static final HyperlinkTargetEnum PARENT
Constant useful for specifying that the hyperlink will be opened in the parent frame.
-
TOP
public static final HyperlinkTargetEnum TOP
Constant useful for specifying that the hyperlink will be opened in the top frame.
-
CUSTOM
public static final HyperlinkTargetEnum CUSTOM
Custom hyperlink target name.The specific target name is determined by
getLinkTarget()
.
-
-
Method Detail
-
values
public static HyperlinkTargetEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HyperlinkTargetEnum c : HyperlinkTargetEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HyperlinkTargetEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getHtmlValue
public String getHtmlValue()
-
getByName
public static HyperlinkTargetEnum getByName(String name)
-
-