java.lang.Object
de.grogra.util.EnumValueImpl
-
Field Summary
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
-
Constructor Summary
ConstructorDescriptionEnumValueImpl
(I18NBundle i18n, String key, ListModel list) EnumValueImpl
(Object value, ListModel list) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getDescription
(String type) Returns the description associated with the giventype
.getElementAt
(int index) getList()
int
getSize()
getValue()
void
toString()
-
Constructor Details
-
EnumValueImpl
-
EnumValueImpl
-
-
Method Details
-
getDescription
Description copied from interface:Described
Returns the description associated with the giventype
.type
has to be one of the predefined constants of this interface, the returned value has to conform to the specification of the used constant.- Specified by:
getDescription
in interfaceDescribed
- Parameters:
type
- the type of description- Returns:
- the description, or
null
if no description is available
-
toString
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAt
in interfaceListModel
-
addListDataListener
- Specified by:
addListDataListener
in interfaceListModel
-
removeListDataListener
- Specified by:
removeListDataListener
in interfaceListModel
-
getList
-
getValue
-
equals
-