public class MediaTypeEditor extends PropertyEditorSupport
Editor for MediaType
descriptors, to automatically convert String specifications
(e.g. "text/html") to MediaType properties.MediaType| Constructor and Description |
|---|
MediaTypeEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic void setAsText(String text)
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport