|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnumerationMapper
Interface for mapping values and descriptions of enumerated properties.
Instances of this class can be registered with Install4JBeanInfo.setEnumerationMappers(EnumerationMapper[])
.
In the install4j GUI, an enumerated property will be displayed with the enumeration entry name that corresponds to the
object value of the property and the user can choose a value from a drop-down list.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CONTEXT
A default context that you can use in the getContext method if there is only one enumeration mapper for the property type returned by getEnumerationClass |
Method Summary | |
---|---|
java.lang.String |
getContext()
The property descriptor of an enumerated property must have a non-null context that corresponds to the return value of this method. |
java.lang.Class |
getEnumerationClass()
Return the property type for which this enumeration mapper is eligible. |
EnumerationMapEntry[] |
getEnumerationMapEntries()
Defines the enumeration. |
Field Detail |
---|
static final java.lang.String DEFAULT_CONTEXT
getEnumerationClass()
,
getContext()
,
Constant Field ValuesMethod Detail |
---|
java.lang.Class getEnumerationClass()
getEnumerationMapEntries()
EnumerationMapEntry[] getEnumerationMapEntries()
java.lang.String getContext()
For classes that do not have default handlers in install4j, the enumeration mapper will also be used if only the getEnumerationClass method returns the class of the property and the context of the property is not set. However, it is safer not to rely on that behavior.
|
install4j API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |