public class EnumerationMapEntry
extends java.lang.Object
EnumerationMapper
.
An enumeration map entry maps a verbose description to an arbitrary object.
For primitive enumerated values, an instance of the corresponding wrapper class can be used for the object property.Constructor and Description |
---|
EnumerationMapEntry(java.lang.String name,
java.lang.Object object)
Construct a map entry.
|
EnumerationMapEntry(java.lang.String name,
java.lang.Object object,
javax.swing.Icon icon)
Construct a map entry.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon()
Get the icon that is to be displayed in the drop-down list in the IDE.
|
java.lang.String |
getName()
Get the name of the map entry.
|
java.lang.Object |
getObject()
Get the object that is mapped to the specified name.
|
public EnumerationMapEntry(java.lang.String name, java.lang.Object object)
name
- the nameobject
- the objectpublic EnumerationMapEntry(java.lang.String name, java.lang.Object object, javax.swing.Icon icon)
name
- the nameobject
- the objecticon
- the icon to be displayed in the drop-down list in the IDE, may be nullpublic java.lang.String getName()
public java.lang.Object getObject()
public javax.swing.Icon getIcon()