Class 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.
    • Method Summary

      All Methods Instance Methods Concrete 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)
      Sets the image path of the enum constant to the specified path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 constant
        captionKey - the caption 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

        public final void setImagePath​(java.lang.String imagePath)
        Sets the image path of the enum constant to the specified path.
        Parameters:
        imagePath - the path to set