abstract class AbstractBasicEnumValue<E> extends java.lang.Number implements EnumValue<E>
Modifier | Constructor and Description |
---|---|
protected |
AbstractBasicEnumValue(java.lang.String baseTag)
Create an abstract basic enum value.
|
Modifier and Type | Method and Description |
---|---|
EnumValue<E> |
getBasicValue()
Get the basic enum value.
|
javax.swing.Icon |
getIcon(java.util.Locale l)
Get a possible icon to display for this value.
|
java.lang.String |
getLongName(java.util.Locale l)
Get a longer description which describes this value.
|
java.lang.String |
getShortName(java.util.Locale l)
Get a human readable name for this enum value.
|
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRealValue, isEqualTo, storeTo
protected AbstractBasicEnumValue(java.lang.String baseTag)
baseTag
- basic i18n tag@NotNull public java.lang.String getShortName(@Nullable java.util.Locale l)
getShortName
in interface EnumValue<E>
l
- locale to usepublic java.lang.String getLongName(@Nullable java.util.Locale l)
getLongName
in interface EnumValue<E>
l
- locale to usenull
if no description is availablepublic javax.swing.Icon getIcon(@Nullable java.util.Locale l)