Package com.mendix.webui.reporting
Class EnumConstant
- java.lang.Object
-
- com.mendix.webui.reporting.EnumConstant
-
public class EnumConstant extends java.lang.Object
Represents a single enum constant.
-
-
Constructor Summary
Constructors Constructor Description EnumConstant(java.lang.String key, java.lang.String captionKey)
Creates an enum constant with a key (= value) and caption.EnumConstant(java.lang.String key, java.lang.String captionKey, java.lang.String imagePath)
Creates an enum constant with a key (= value), caption and imagePath.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCaptionKey()
Returns the caption of the enum constant.java.lang.String
getImagePath()
Returns the image path of the enum constant.java.lang.String
getKey()
Returns the value of the enum constant.void
setImagePath(java.lang.String imagePath)
Deprecated.since 9.24.
-
-
-
Constructor Detail
-
EnumConstant
public EnumConstant(java.lang.String key, java.lang.String captionKey)
Creates an enum constant with a key (= value) and caption.- Parameters:
key
- the value of the enum constantcaptionKey
- the caption of the enum constant
-
EnumConstant
public EnumConstant(java.lang.String key, java.lang.String captionKey, java.lang.String imagePath)
Creates an enum constant with a key (= value), caption and imagePath.- Parameters:
key
- the value of the enum constantcaptionKey
- the caption of the enum constantimagePath
- the path of the enum constant
-
-
Method Detail
-
getKey
public final java.lang.String getKey()
Returns the value of the enum constant.- Returns:
- the enum value
-
getCaptionKey
public final java.lang.String getCaptionKey()
Returns the caption of the enum constant.- Returns:
- the caption
-
getImagePath
public final java.lang.String getImagePath()
Returns the image path of the enum constant.- Returns:
- the image path
-
setImagePath
@Deprecated public final void setImagePath(java.lang.String imagePath)
Deprecated.since 9.24. Use constructor instead.Sets the image path of the enum constant to the specified path.- Parameters:
imagePath
- the path to set
-
-