public class TypeSafeEnumerationField extends AbstractEnumerationField implements java.awt.event.ActionListener
| Constructor and Description |
|---|
TypeSafeEnumerationField() |
| Modifier and Type | Method and Description |
|---|---|
void |
setType(java.lang.Class type) |
java.lang.String |
stringOf(java.lang.Object value)
Gets the presentation string for a value of the property type.
|
java.lang.Object |
valueOf(java.lang.String text)
Gets the value of the property type corresponding to a presentation string.
|
actionPerformed, addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getComponent, getComponentTracksContainerWidth, getElementAt, getSelectedItem, getSize, getValue, removeListDataListener, setEnumerals, setSelectedItem, setValueaddFieldListener, apply, equals, fireFieldChanged, fireFieldCommitted, fireFieldEntered, fireFieldExited, focusGained, focusLost, getDescriptor, getType, handleException, load, removeFieldListener, setDescriptor, toStringbaseline, getComponentBaseline, getLabel, getLabelText, getMnemonic, getMnemonicIndex, getName, setLabelText, setMnemonic, setMnemonicIndex, setNamepublic void setType(java.lang.Class type)
setType in class PropertyFieldpublic java.lang.String stringOf(java.lang.Object value)
AbstractEnumerationFieldAbstractEnumerationField implementation simply casts the value
to String, and so must be overridden unless the property type is
String.stringOf in class AbstractEnumerationFieldpublic java.lang.Object valueOf(java.lang.String text)
AbstractEnumerationFieldAbstractEnumerationField implementation simply returns the
text, and so must be overridden unless the property type is String.valueOf in class AbstractEnumerationField